Browse Source

scale gizmo updateGizmoRotationToMatchAttachedMesh message

Trevor Baron 7 năm trước cách đây
mục cha
commit
e9caab0dcc
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/Gizmos/babylon.scaleGizmo.ts

+ 3 - 0
src/Gizmos/babylon.scaleGizmo.ts

@@ -55,6 +55,9 @@ module BABYLON {
         }
 
         public set updateGizmoRotationToMatchAttachedMesh(value:boolean){
+            if(!value){
+                Tools.Warn("Setting updateGizmoRotationToMatchAttachedMesh = false on scaling gizmo is not supported.");
+            }
             if(this.xGizmo){
                 this.xGizmo.updateGizmoRotationToMatchAttachedMesh = value;
                 this.yGizmo.updateGizmoRotationToMatchAttachedMesh = value;