aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-12 17:10:19 -0700
committerNivesh Rajbhandari2012-03-12 17:10:19 -0700
commit90e2f71d730fb4f4ec07b40d2c2569e6c46e8a1c (patch)
treea093f8045ec08223d221138475c9229c0ee398b9
parent9d885aae7a17b4fc731a41f6b1ac8840092b83ac (diff)
downloadninja-90e2f71d730fb4f4ec07b40d2c2569e6c46e8a1c.tar.gz
Fixing selection tool when moving multiple selection in 3d mode.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-xjs/tools/SelectionTool.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index 13a04944..5f48f74d 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -451,7 +451,10 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
451 if(this._use3DMode) 451 if(this._use3DMode)
452 { 452 {
453 curMat = item.mat; 453 curMat = item.mat;
454 glmat4.multiply(curMat, qMat, curMat); 454
455 curMat[12] += transMat[12];
456 curMat[13] += transMat[13];
457 curMat[14] += transMat[14];
455 viewUtils.setMatrixForElement( elt, curMat, true); 458 viewUtils.setMatrixForElement( elt, curMat, true);
456 this._targets[i].mat = curMat; 459 this._targets[i].mat = curMat;
457 } 460 }