aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-22 11:16:39 -0700
committerNivesh Rajbhandari2012-03-22 11:16:39 -0700
commitbead8ce9e292f030a4b2fba6ad7fd38fb4fe5199 (patch)
treebb49957ed4d2bd96e97618b95d79fcd73d1fc147 /js/tools
parent92854b266936f844370688da3b15d035a041e8c2 (diff)
downloadninja-bead8ce9e292f030a4b2fba6ad7fd38fb4fe5199.tar.gz
IKNINJA-758 - The rotation value of the stage is not updated in the properties panel.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/RotateStage3DTool.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/tools/RotateStage3DTool.js b/js/tools/RotateStage3DTool.js
index 2b312e53..f5cc4040 100755
--- a/js/tools/RotateStage3DTool.js
+++ b/js/tools/RotateStage3DTool.js
@@ -76,7 +76,7 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, {
76 76
77 this._targets.push({elt:elt, mat:curMat, matInv:curMatInv, ctr:eltCtr}); 77 this._targets.push({elt:elt, mat:curMat, matInv:curMatInv, ctr:eltCtr});
78 78
79 viewUtils.setMatrixForElement( elt, curMat, false ); 79 ElementsMediator.setMatrix(elt, curMat, false, "rotateStage3DTool");
80 } 80 }
81 }, 81 },
82 82
@@ -130,7 +130,8 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, {
130 // Reset stage to identity matrix 130 // Reset stage to identity matrix
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,
134 iMat, false, "rotateStage3DTool");
134 this.application.ninja.currentDocument.documentRoot.elementModel.props3D.m_transformCtr = null; 135 this.application.ninja.currentDocument.documentRoot.elementModel.props3D.m_transformCtr = null;
135 136
136 // let the document and stage manager know about the zoom change 137 // let the document and stage manager know about the zoom change