diff options
-rw-r--r-- | js/helper-classes/3D/draw-utils.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js index fe617548..08a27618 100644 --- a/js/helper-classes/3D/draw-utils.js +++ b/js/helper-classes/3D/draw-utils.js | |||
@@ -168,7 +168,10 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { | |||
168 | for(i=0; i < len; i++) { | 168 | for(i=0; i < len; i++) { |
169 | item = els[i]; | 169 | item = els[i]; |
170 | el = item._element || item; | 170 | el = item._element || item; |
171 | el.elementModel.props3D.elementPlane.init(); | 171 | if(el.elementModel.props3D.elementPlane) |
172 | { | ||
173 | el.elementModel.props3D.elementPlane.init(); | ||
174 | } | ||
172 | } | 175 | } |
173 | 176 | ||
174 | this.application.ninja.stage.layout.draw(); | 177 | this.application.ninja.stage.layout.draw(); |
@@ -1097,7 +1100,6 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { | |||
1097 | var tmpCanvas = this.application.ninja.stage.canvas; | 1100 | var tmpCanvas = this.application.ninja.stage.canvas; |
1098 | var tmpStage = this.application.ninja.currentDocument.documentRoot; | 1101 | var tmpStage = this.application.ninja.currentDocument.documentRoot; |
1099 | this.viewUtils.pushViewportObj( tmpCanvas ); | 1102 | this.viewUtils.pushViewportObj( tmpCanvas ); |
1100 | var tmpStage = this.application.ninja.currentDocument.documentRoot; | ||
1101 | 1103 | ||
1102 | // save the source space object and set to the target object | 1104 | // save the source space object and set to the target object |
1103 | var saveSource = this._sourceSpaceElt; | 1105 | var saveSource = this._sourceSpaceElt; |