diff options
author | Nivesh Rajbhandari | 2012-03-09 13:14:14 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-09 13:14:14 -0800 |
commit | e2562c3f24eb5dbfb9e3bd2868cdf1a2806644bf (patch) | |
tree | d4ccc837cafafd4f3047e60600b74d6d9667655c | |
parent | 3f80251670e187377f9f8ae4547328c8bf344977 (diff) | |
download | ninja-e2562c3f24eb5dbfb9e3bd2868cdf1a2806644bf.tar.gz |
Fixing selection tool when moving multiple selection in 3d mode.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-x | js/tools/SelectionTool.js | 5 |
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 | } |