diff options
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index d8684739..44d6eadb 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -305,8 +305,7 @@ exports.Stage = Montage.create(Component, { | |||
305 | this._scrollLeft = 0; | 305 | this._scrollLeft = 0; |
306 | this._scrollTop = 0; | 306 | this._scrollTop = 0; |
307 | 307 | ||
308 | this.stageDeps.handleOpenDocument(); | 308 | this.initialize3DOnOpenDocument(); |
309 | this.layout.handleOpenDocument(); | ||
310 | 309 | ||
311 | if(designView._template) { | 310 | if(designView._template) { |
312 | var initialLeft = parseInt((this.canvas.width - designView._template.size.width)/2); | 311 | var initialLeft = parseInt((this.canvas.width - designView._template.size.width)/2); |
@@ -1079,6 +1078,18 @@ exports.Stage = Montage.create(Component, { | |||
1079 | this.application.ninja.toolsSplitter.restore(); | 1078 | this.application.ninja.toolsSplitter.restore(); |
1080 | this.application.ninja.optionsSplitter.restore(); | 1079 | this.application.ninja.optionsSplitter.restore(); |
1081 | } | 1080 | } |
1081 | }, | ||
1082 | |||
1083 | initialize3DOnOpenDocument: { | ||
1084 | value: function() { | ||
1085 | |||
1086 | workingPlane = [0,0,1,0]; | ||
1087 | |||
1088 | this.snapManager._isCacheInvalid = true; | ||
1089 | this.snapManager.setupDragPlaneFromPlane (workingPlane); | ||
1090 | |||
1091 | this.drawUtils.initializeFromDocument(); | ||
1092 | } | ||
1082 | } | 1093 | } |
1083 | 1094 | ||
1084 | }); \ No newline at end of file | 1095 | }); \ No newline at end of file |