瀏覽代碼

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

David Catuhe 7 年之前
父節點
當前提交
dcb7ddd883
共有 2 個文件被更改,包括 3 次插入0 次删除
  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);