Преглед изворни кода

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

Trevor Baron пре 7 година
родитељ
комит
ca23e5d767
1 измењених фајлова са 1 додато и 1 уклоњено
  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) => {