Browse Source

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

Trevor Baron 7 năm trước cách đây
mục cha
commit
90d4cb44f7
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

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