diff options
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rw-r--r-- | js/stage/stage.reel/stage.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index 92ab4033..b72615db 100644 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -175,7 +175,7 @@ exports.Stage = Montage.create(Component, { | |||
175 | } | 175 | } |
176 | else if(this.updatedStage) { | 176 | else if(this.updatedStage) { |
177 | this.layout.draw(); | 177 | this.layout.draw(); |
178 | this.layout.draw3DInfo(); | 178 | this.layout.draw3DInfo(true); |
179 | } | 179 | } |
180 | } | 180 | } |
181 | }, | 181 | }, |
@@ -839,8 +839,8 @@ exports.Stage = Montage.create(Component, { | |||
839 | setStageView: { | 839 | setStageView: { |
840 | value: function(side) { | 840 | value: function(side) { |
841 | var mat, | 841 | var mat, |
842 | workingPlane = null, | 842 | currentDoc = this.application.ninja.currentDocument.documentRoot, |
843 | currentDoc = this.application.ninja.currentDocument.documentRoot; | 843 | isDrawingGrid = this.application.ninja.appModel.show3dGrid; |
844 | // Stage 3d Props. | 844 | // Stage 3d Props. |
845 | currentDoc.elementModel.props3D.ResetTranslationValues(); | 845 | currentDoc.elementModel.props3D.ResetTranslationValues(); |
846 | currentDoc.elementModel.props3D.ResetRotationValues(); | 846 | currentDoc.elementModel.props3D.ResetRotationValues(); |
@@ -850,19 +850,19 @@ exports.Stage = Montage.create(Component, { | |||
850 | case "top": | 850 | case "top": |
851 | mat = Matrix.RotationX(Math.PI * 270.0/180.0); | 851 | mat = Matrix.RotationX(Math.PI * 270.0/180.0); |
852 | drawUtils.drawXY = drawUtils.drawYZ = false; | 852 | drawUtils.drawXY = drawUtils.drawYZ = false; |
853 | drawUtils.drawXZ = drawUtils.isDrawingGrid(); | 853 | drawUtils.drawXZ = isDrawingGrid; |
854 | break; | 854 | break; |
855 | 855 | ||
856 | case "side": | 856 | case "side": |
857 | mat = Matrix.RotationY(Math.PI * 270/180); | 857 | mat = Matrix.RotationY(Math.PI * 270/180); |
858 | drawUtils.drawXY = drawUtils.drawXZ = false; | 858 | drawUtils.drawXY = drawUtils.drawXZ = false; |
859 | drawUtils.drawYZ = drawUtils.isDrawingGrid(); | 859 | drawUtils.drawYZ = isDrawingGrid; |
860 | break; | 860 | break; |
861 | 861 | ||
862 | case "front": | 862 | case "front": |
863 | mat = Matrix.I(4); | 863 | mat = Matrix.I(4); |
864 | drawUtils.drawYZ = drawUtils.drawXZ = false; | 864 | drawUtils.drawYZ = drawUtils.drawXZ = false; |
865 | drawUtils.drawXY = drawUtils.isDrawingGrid(); | 865 | drawUtils.drawXY = isDrawingGrid; |
866 | break; | 866 | break; |
867 | } | 867 | } |
868 | workingPlane = this.getPlaneForView( side ); | 868 | workingPlane = this.getPlaneForView( side ); |