Browse Source

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 7 năm trước cách đây
mục cha
commit
dcb7ddd883
2 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 1 0
      dist/preview release/what's new.md
  2. 2 0
      src/Gizmos/babylon.gizmoManager.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -152,6 +152,7 @@
 - Fixed issue where gaze trackers were appearing even after leaving VR ([atulyar](https://github.com/atulyar))
 - AdvancedDynamicTexture should not overwrite skipOnPointerObservable to false ([TrevorDev](https://github.com/TrevorDev))
 - Fixed issue where VRExperienceHelper.onExitingVR observable was being fired twice ([atulyar](https://github.com/atulyar))
+- GizmoManager should hide existing gizmos if a non-attachable mesh is selected ([TrevorDev](https://github.com/TrevorDev))
 
 ### Core Engine
 

+ 2 - 0
src/Gizmos/babylon.gizmoManager.ts

@@ -56,6 +56,8 @@ module BABYLON {
                         }
                         if(node instanceof AbstractMesh){
                             this.attachToMesh(node);
+                        }else{
+                            this.attachToMesh(null);
                         }
                     }else{
                         this.attachToMesh(null);