aboutsummaryrefslogtreecommitdiff
path: root/js/tools/Rotate3DToolBase.js
diff options
context:
space:
mode:
authorhwc4872012-04-16 10:34:14 -0700
committerhwc4872012-04-16 10:34:14 -0700
commita62cfc5976b03a9b6c7ee2f308312319b6b0e142 (patch)
treec7a44dac7a46c13ed73758a323afe5b0229362ce /js/tools/Rotate3DToolBase.js
parent642d7b45446894a2f3038dcc07a867b260968256 (diff)
downloadninja-a62cfc5976b03a9b6c7ee2f308312319b6b0e142.tar.gz
3D translation fixes
Diffstat (limited to 'js/tools/Rotate3DToolBase.js')
-rwxr-xr-xjs/tools/Rotate3DToolBase.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/js/tools/Rotate3DToolBase.js b/js/tools/Rotate3DToolBase.js
index 880eefc4..d08b3a31 100755
--- a/js/tools/Rotate3DToolBase.js
+++ b/js/tools/Rotate3DToolBase.js
@@ -43,6 +43,33 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, {
43 } 43 }
44 }, 44 },
45 45
46 HandleMouseMove: {
47 value: function(event) {
48 if(this._escape) {
49 this._escape = false;
50 this.isDrawing = true;
51 }
52
53 if(this.isDrawing) {
54 this._hasDraw = true; // Flag for position of element
55 this.doDraw(event);
56 } else {
57 this._showFeedbackOnMouseMove(event);
58 if(this._canSnap)
59 {
60 this.doSnap(event);
61 }
62 }
63
64 this.DrawHandles(this._delta);
65
66 if(this._canSnap)
67 {
68 snapManager.drawLastHit();
69 }
70 }
71 },
72
46 modifyElements: { 73 modifyElements: {
47 value: function(data, event) { 74 value: function(data, event) {
48 var mat, 75 var mat,