Browse Source

back compat fix as some floor meshes are not marked as pickable

Trevor Baron 7 năm trước cách đây
mục cha
commit
ca23e5d767
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Cameras/VR/babylon.vrExperienceHelper.ts

+ 1 - 1
src/Cameras/VR/babylon.vrExperienceHelper.ts

@@ -953,7 +953,7 @@ module BABYLON {
                 }
 
                 this.raySelectionPredicate = (mesh) => {
-                    return mesh.isVisible && mesh.isPickable;
+                    return mesh.isVisible && (mesh.isPickable || mesh.name === this._floorMeshName);
                 }
 
                 this.meshSelectionPredicate = (mesh) => {