aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/Translate3DToolBase.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tools/Translate3DToolBase.js b/js/tools/Translate3DToolBase.js
index 18e2b610..bd2b3af1 100755
--- a/js/tools/Translate3DToolBase.js
+++ b/js/tools/Translate3DToolBase.js
@@ -147,8 +147,8 @@ exports.Translate3DToolBase = Montage.create(ModifierToolBase,
147 147
148 _translateGlobally: { 148 _translateGlobally: {
149 value: function (transMat) { 149 value: function (transMat) {
150 //console.log( "_translateGlobally, startMat: " + this._startMat + ", transMat: " + transMat );
151 //console.log( "_translateGlobally, transMat: " + transMat ); 150 //console.log( "_translateGlobally, transMat: " + transMat );
151 //console.log( "_translateGlobally, startMat: " + this._startMat + ", transMat: " + transMat );
152 var len = this._targets.length, 152 var len = this._targets.length,
153 i = 0, 153 i = 0,
154 item, 154 item,
@@ -160,6 +160,7 @@ exports.Translate3DToolBase = Montage.create(ModifierToolBase,
160 160
161 if (this._mode === 1) 161 if (this._mode === 1)
162 { 162 {
163 if (len > 1) curMat = this._targets[0].mat.slice();
163 var curInv = glmat4.inverse( curMat, [] ); 164 var curInv = glmat4.inverse( curMat, [] );
164 transMat = glmat4.multiply( nMat, curInv, [] ); 165 transMat = glmat4.multiply( nMat, curInv, [] );
165 } 166 }