Explorar o código

Merge pull request #8829 from Popov72/fix-boundingboxgizmo-scaling

BoundingBoxGizmo: Fix scaling in the opposite direction
Raanan Weber %!s(int64=5) %!d(string=hai) anos
pai
achega
f239b79054
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Gizmos/boundingBoxGizmo.ts

+ 1 - 1
src/Gizmos/boundingBoxGizmo.ts

@@ -262,7 +262,7 @@ export class BoundingBoxGizmo extends Gizmo {
                     box.metadata = zeroAxisCount === 2; // None homogenous scale handle
 
                     // Dragging logic
-                    let dragAxis = new Vector3(i - 1, j - 1, k - 1);
+                    let dragAxis = new Vector3(i - 1, j - 1, k - 1).normalize();
                     var _dragBehavior = new PointerDragBehavior({ dragAxis: dragAxis });
                     _dragBehavior.updateDragPlane = false;
                     _dragBehavior.moveAttached = false;