diff options
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/RotateStage3DTool.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/tools/RotateStage3DTool.js b/js/tools/RotateStage3DTool.js index 0210289f..2a9c63db 100755 --- a/js/tools/RotateStage3DTool.js +++ b/js/tools/RotateStage3DTool.js | |||
@@ -96,7 +96,8 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, { | |||
96 | viewUtils.pushViewportObj( stage ); | 96 | viewUtils.pushViewportObj( stage ); |
97 | var eltCtr = viewUtils.getCenterOfProjection(); | 97 | var eltCtr = viewUtils.getCenterOfProjection(); |
98 | viewUtils.popViewportObj(); | 98 | viewUtils.popViewportObj(); |
99 | if(this.application.ninja.documentController.webTemplate) | 99 | // if(this.application.ninja.documentController.webTemplate) |
100 | if(this.application.ninja.currentDocument.documentRoot.id !== "UserContent") | ||
100 | { | 101 | { |
101 | eltCtr[0] = stage.scrollWidth/2; | 102 | eltCtr[0] = stage.scrollWidth/2; |
102 | eltCtr[1] = stage.scrollHeight/2; | 103 | eltCtr[1] = stage.scrollHeight/2; |
@@ -118,7 +119,8 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, { | |||
118 | 119 | ||
119 | this._origin = viewUtils.localToGlobal(eltCtr, stage); | 120 | this._origin = viewUtils.localToGlobal(eltCtr, stage); |
120 | 121 | ||
121 | if(this.application.ninja.documentController.webTemplate) | 122 | // if(this.application.ninja.documentController.webTemplate) |
123 | if(this.application.ninja.currentDocument.documentRoot.id !== "UserContent") | ||
122 | { | 124 | { |
123 | this._startOriginArray = []; | 125 | this._startOriginArray = []; |
124 | this._startOriginArray.push(this._origin.slice()); | 126 | this._startOriginArray.push(this._origin.slice()); |