diff options
Diffstat (limited to 'js/stage/stage-deps.js')
-rwxr-xr-x | js/stage/stage-deps.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/stage/stage-deps.js b/js/stage/stage-deps.js index 756844fd..f27254f9 100755 --- a/js/stage/stage-deps.js +++ b/js/stage/stage-deps.js | |||
@@ -25,13 +25,15 @@ exports.StageDeps = Montage.create(Component, { | |||
25 | return this._currentDocument; | 25 | return this._currentDocument; |
26 | }, | 26 | }, |
27 | set : function(value) { | 27 | set : function(value) { |
28 | if (value === this._currentDocument || value.getProperty("currentView") !== "design") { | 28 | if (value === this._currentDocument) {// || value.getProperty("currentView") !== "design") { |
29 | return; | 29 | return; |
30 | } | 30 | } |
31 | 31 | ||
32 | this._currentDocument = value; | 32 | this._currentDocument = value; |
33 | 33 | ||
34 | if(this._currentDocument) { | 34 | if(!value) { |
35 | |||
36 | } else if(this._currentDocument.currentView === "design") { | ||
35 | workingPlane = [0,0,1,0]; | 37 | workingPlane = [0,0,1,0]; |
36 | 38 | ||
37 | snapManager._isCacheInvalid = true; | 39 | snapManager._isCacheInvalid = true; |
@@ -39,6 +41,7 @@ exports.StageDeps = Montage.create(Component, { | |||
39 | 41 | ||
40 | drawUtils.initializeFromDocument(); | 42 | drawUtils.initializeFromDocument(); |
41 | } | 43 | } |
44 | |||
42 | } | 45 | } |
43 | }, | 46 | }, |
44 | 47 | ||