Explorar o código

make vrhelpers raySelection predicate skip meshes that are not pickable by default

Trevor Baron %!s(int64=7) %!d(string=hai) anos
pai
achega
90d4cb44f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Cameras/VR/babylon.vrExperienceHelper.ts

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

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