Skip to content

Commit

Permalink
Correct scaling of gizmo pivot point representation
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg209 committed Jun 24, 2013
1 parent 6fad361 commit e208feb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ package awaybuilder.view.scene.controls
super.update(); super.update();


if (pivot && currentMesh) { if (pivot && currentMesh) {
pivot.scaleX = content.scaleX;
pivot.scaleY = content.scaleY;
pivot.scaleZ = content.scaleZ;

pivot.eulers = CameraManager.camera.eulers.clone(); pivot.eulers = CameraManager.camera.eulers.clone();
var piv:Vector3D = currentMesh.sceneTransform.deltaTransformVector(currentMesh.pivotPoint); var piv:Vector3D = currentMesh.sceneTransform.deltaTransformVector(currentMesh.pivotPoint);
pivot.position = piv; pivot.position = piv;
Expand Down

0 comments on commit e208feb

Please sign in to comment.