aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-09 13:14:14 -0800
committerNivesh Rajbhandari2012-03-09 13:14:14 -0800
commite2562c3f24eb5dbfb9e3bd2868cdf1a2806644bf (patch)
treed4ccc837cafafd4f3047e60600b74d6d9667655c /js
parent3f80251670e187377f9f8ae4547328c8bf344977 (diff)
downloadninja-e2562c3f24eb5dbfb9e3bd2868cdf1a2806644bf.tar.gz
Fixing selection tool when moving multiple selection in 3d mode.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-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 }