aboutsummaryrefslogtreecommitdiff
path: root/js/tools/ShapeTool.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools/ShapeTool.js')
-rwxr-xr-xjs/tools/ShapeTool.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js
index ecc0dca3..e1ca31e6 100755
--- a/js/tools/ShapeTool.js
+++ b/js/tools/ShapeTool.js
@@ -167,13 +167,13 @@ exports.ShapeTool = Montage.create(DrawingTool, {
167 }, 167 },
168 168
169 getGLWorld: { 169 getGLWorld: {
170 value: function (canvas, use3D) 170 value: function (canvas, use3D) {
171 { 171 var world;
172 var world = this.application.ninja.elementMediator.getShapeProperty(canvas, "GLWorld"); 172
173 if(!world) 173 world = this.application.ninja.elementMediator.getShapeProperty(canvas, "GLWorld");
174 { 174 if(!world) {
175 // create all the GL stuff 175 // create all the GL stuff
176 var world = new World(canvas, use3D); 176 world = new World(canvas, use3D);
177 this.application.ninja.elementMediator.setShapeProperty(canvas, "GLWorld", world); 177 this.application.ninja.elementMediator.setShapeProperty(canvas, "GLWorld", world);
178 } 178 }
179 179