Explorar o código

scale gizmo updateGizmoRotationToMatchAttachedMesh message

Trevor Baron %!s(int64=7) %!d(string=hai) anos
pai
achega
e9caab0dcc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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){
         public set updateGizmoRotationToMatchAttachedMesh(value:boolean){
+            if(!value){
+                Tools.Warn("Setting updateGizmoRotationToMatchAttachedMesh = false on scaling gizmo is not supported.");
+            }
             if(this.xGizmo){
             if(this.xGizmo){
                 this.xGizmo.updateGizmoRotationToMatchAttachedMesh = value;
                 this.xGizmo.updateGizmoRotationToMatchAttachedMesh = value;
                 this.yGizmo.updateGizmoRotationToMatchAttachedMesh = value;
                 this.yGizmo.updateGizmoRotationToMatchAttachedMesh = value;