diff options
author | Valerio Virgillito | 2012-05-17 23:12:28 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-17 23:12:28 -0700 |
commit | f227015e14b505dbd3fc4b030ca17cb6c50c5d88 (patch) | |
tree | e961da97cf6981e69b4306bf0a13ecc3153836e7 | |
parent | 4643e6e26925884ff48e0d5b9337d644652cf3a1 (diff) | |
download | ninja-f227015e14b505dbd3fc4b030ca17cb6c50c5d88.tar.gz |
fixed the draw util doc root reference
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
-rwxr-xr-x | js/helper-classes/3D/draw-utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js index a8bc16ef..bf48a723 100755 --- a/js/helper-classes/3D/draw-utils.js +++ b/js/helper-classes/3D/draw-utils.js | |||
@@ -124,7 +124,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { | |||
124 | this._eltArray = []; | 124 | this._eltArray = []; |
125 | this._planesArray = []; | 125 | this._planesArray = []; |
126 | this.setDrawingSurfaceElement(stage.canvas); | 126 | this.setDrawingSurfaceElement(stage.canvas); |
127 | this.setSourceSpaceElement( stage.stageDeps.currentStage ); | 127 | this.setSourceSpaceElement( this.application.ninja.currentDocument.documentRoot); |
128 | this.setWorkingPlane( [0,0,1,0] ); | 128 | this.setWorkingPlane( [0,0,1,0] ); |
129 | 129 | ||
130 | //Loop through all the top-level children of the current document and call drawUtils.addElement on them | 130 | //Loop through all the top-level children of the current document and call drawUtils.addElement on them |