aboutsummaryrefslogtreecommitdiff
path: root/js/tools/RotateStage3DTool.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-23 13:52:32 -0800
committerAnanya Sen2012-02-23 13:52:32 -0800
commitec3d07c2fea4e79c68606234074f43d694982e5b (patch)
treedc7c830c361d35c04a4d9b6d55c6c36d7a5d61cd /js/tools/RotateStage3DTool.js
parent7283884c39df537694b21419a3ea9e3ca7793b4b (diff)
parent287a0bad5b774a380ec6c8b3ddf24dc03234e248 (diff)
downloadninja-ec3d07c2fea4e79c68606234074f43d694982e5b.tar.gz
Merge branch 'refs/heads/FileIO-jose' into FileIO
Conflicts: js/document/html-document.js js/helper-classes/3D/snap-manager.js Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/tools/RotateStage3DTool.js')
-rwxr-xr-xjs/tools/RotateStage3DTool.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/tools/RotateStage3DTool.js b/js/tools/RotateStage3DTool.js
index ca2a8bf3..2b312e53 100755
--- a/js/tools/RotateStage3DTool.js
+++ b/js/tools/RotateStage3DTool.js
@@ -131,9 +131,14 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, {
131 var iMat = Matrix.I(4); 131 var iMat = Matrix.I(4);
132 132
133 ElementsMediator.setMatrix(this.application.ninja.currentDocument.documentRoot, iMat, false); 133 ElementsMediator.setMatrix(this.application.ninja.currentDocument.documentRoot, iMat, false);
134
135 this.application.ninja.currentDocument.documentRoot.elementModel.props3D.m_transformCtr = null; 134 this.application.ninja.currentDocument.documentRoot.elementModel.props3D.m_transformCtr = null;
136 135
136 // let the document and stage manager know about the zoom change
137 this.application.ninja.stage._firstDraw = true;
138 this.application.ninja.documentBar.zoomFactor = 100;
139 this.application.ninja.currentDocument.iframe.style.zoom = 1.0;
140 this.application.ninja.stage._firstDraw = false;
141
137 // TODO - Any updates to the stage should redraw stage's children. Move this to mediator? 142 // TODO - Any updates to the stage should redraw stage's children. Move this to mediator?
138 this.application.ninja.stage.updatedStage = true; 143 this.application.ninja.stage.updatedStage = true;
139 144