diff options
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index c9164e3e..e792c646 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -73,12 +73,8 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
73 | canvas.width = el.width; | 73 | canvas.width = el.width; |
74 | canvas.height = el.height; | 74 | canvas.height = el.height; |
75 | canvas.elementModel = el.elementModel; | 75 | canvas.elementModel = el.elementModel; |
76 | this.application.ninja.currentDocument.documentRoot.replaceChild(canvas, el); | 76 | this.toggleWebGlMode(canvas, value); |
77 | NJevent("elementsRemoved", el); | 77 | this.application.ninja.elementMediator.replaceElement(canvas, el); |
78 | el = canvas; | ||
79 | this.toggleWebGlMode(el, value); | ||
80 | el.elementModel.shapeModel.GLWorld.render(); | ||
81 | this.application.ninja.selectionController.selectElement(el); | ||
82 | return; | 78 | return; |
83 | case "strokeMaterial": | 79 | case "strokeMaterial": |
84 | var sm = Object.create(MaterialsModel.getMaterial(value)); | 80 | var sm = Object.create(MaterialsModel.getMaterial(value)); |