Przeglądaj źródła

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

Trevor Baron 7 lat temu
rodzic
commit
90d4cb44f7
1 zmienionych plików z 1 dodań i 1 usunięć
  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) => {