diff options
author | Jose Antonio Marquez | 2012-03-06 17:02:44 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-06 17:02:44 -0800 |
commit | fca92904597895675ddd216399cd235f3c5a7cfa (patch) | |
tree | 77c30a958c0283a6aa208b93640c6008eeb943e2 /js/tools/ShapeTool.js | |
parent | ec7cbc95de031d2be667c2a8629a9d63e91f7e1a (diff) | |
parent | eebb7de4d19cddec9c763a073d8cf41d76fe70f7 (diff) | |
download | ninja-fca92904597895675ddd216399cd235f3c5a7cfa.tar.gz |
Merge branch 'refs/heads/FileIO' into FileIO-Build-Candidate
Diffstat (limited to 'js/tools/ShapeTool.js')
-rwxr-xr-x | js/tools/ShapeTool.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js index 29e9b99f..d3a36163 100755 --- a/js/tools/ShapeTool.js +++ b/js/tools/ShapeTool.js | |||
@@ -14,6 +14,8 @@ var Montage = require("montage/core/core").Montage, | |||
14 | ShapeModel = require("js/models/shape-model").ShapeModel, | 14 | ShapeModel = require("js/models/shape-model").ShapeModel, |
15 | TagTool = require("js/tools/TagTool").TagTool; | 15 | TagTool = require("js/tools/TagTool").TagTool; |
16 | 16 | ||
17 | var World = require("js/lib/drawing/world").World; | ||
18 | |||
17 | exports.ShapeTool = Montage.create(DrawingTool, { | 19 | exports.ShapeTool = Montage.create(DrawingTool, { |
18 | drawingFeedback: { value: { mode: "Draw3D", type: "rectangle" } }, | 20 | drawingFeedback: { value: { mode: "Draw3D", type: "rectangle" } }, |
19 | 21 | ||
@@ -176,7 +178,7 @@ exports.ShapeTool = Montage.create(DrawingTool, { | |||
176 | if(!world) | 178 | if(!world) |
177 | { | 179 | { |
178 | // create all the GL stuff | 180 | // create all the GL stuff |
179 | var world = new GLWorld(canvas, use3D); | 181 | var world = new World(canvas, use3D); |
180 | ElementMediator.setShapeProperty(canvas, "GLWorld", world); | 182 | ElementMediator.setShapeProperty(canvas, "GLWorld", world); |
181 | } | 183 | } |
182 | 184 | ||