diff options
Diffstat (limited to 'js/controllers/elements/shapes-controller.js')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index 236e9caa..f9b63942 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -122,10 +122,9 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
122 | canvas.setAttribute("data-RDGE-id", njModule.NJUtils.generateRandom()); | 122 | canvas.setAttribute("data-RDGE-id", njModule.NJUtils.generateRandom()); |
123 | canvas.width = el.width; | 123 | canvas.width = el.width; |
124 | canvas.height = el.height; | 124 | canvas.height = el.height; |
125 | this.application.ninja.elementMediator.replaceElement(el, canvas); | 125 | canvas.elementModel = el.elementModel; |
126 | NJevent("elementDeleted", el); | ||
127 | this.toggleWebGlMode(canvas, value); | 126 | this.toggleWebGlMode(canvas, value); |
128 | NJevent("elementAdded", canvas); | 127 | this.application.ninja.elementMediator.replaceElement(canvas, el); |
129 | break; | 128 | break; |
130 | case "strokeMaterial": | 129 | case "strokeMaterial": |
131 | m = Object.create(MaterialsModel.getMaterial(value)); | 130 | m = Object.create(MaterialsModel.getMaterial(value)); |