diff options
author | Nivesh Rajbhandari | 2012-05-29 14:55:19 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-29 14:55:19 -0700 |
commit | 961830a1ab076db70577df735f43cae5e8559e83 (patch) | |
tree | 9247b68ad2707c0632a3b3fa52d8d82c8d171d6d /js/helper-classes/3D | |
parent | f3a019a6aad13c9c4bd84546c91a0b16ad04c0cd (diff) | |
download | ninja-961830a1ab076db70577df735f43cae5e8559e83.tar.gz |
Moving layout and stageDeps' handleOpenDocument into stage.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes/3D')
-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 75aa308c..9e9a2241 100755 --- a/js/helper-classes/3D/draw-utils.js +++ b/js/helper-classes/3D/draw-utils.js | |||
@@ -627,11 +627,11 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { | |||
627 | { | 627 | { |
628 | value: function () | 628 | value: function () |
629 | { | 629 | { |
630 | this.application.ninja.stage.clearGridCanvas(); | ||
630 | if (!this.isDrawingGrid()) return; | 631 | if (!this.isDrawingGrid()) return; |
631 | 632 | ||
632 | var saveContext = this.getDrawingSurfaceElement(); | 633 | var saveContext = this.getDrawingSurfaceElement(); |
633 | this.setDrawingSurfaceElement(this.application.ninja.stage.gridCanvas); | 634 | this.setDrawingSurfaceElement(this.application.ninja.stage.gridCanvas); |
634 | this.clear(); | ||
635 | 635 | ||
636 | // 3 coordinate axes for the plane | 636 | // 3 coordinate axes for the plane |
637 | var zAxis = [this._workingPlane[0], this._workingPlane[1], this._workingPlane[2]]; | 637 | var zAxis = [this._workingPlane[0], this._workingPlane[1], this._workingPlane[2]]; |