diff options
author | Eric Guzman | 2012-06-12 12:58:50 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-12 12:58:50 -0700 |
commit | 3ceb1282fa317023706e001bb4ec5ac61e40590f (patch) | |
tree | 6077f184df2e3a28dcbb21af936cfe6744bff21b | |
parent | 1f855ae600c9f796bb8c6abe01fd7f9ffd15a1ac (diff) | |
download | ninja-3ceb1282fa317023706e001bb4ec5ac61e40590f.tar.gz |
Components - Add object instance to model's objects array
-rwxr-xr-x | js/panels/components-panel.reel/components-panel.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/panels/components-panel.reel/components-panel.js b/js/panels/components-panel.reel/components-panel.js index e6b7a6e3..c8e5ac9a 100755 --- a/js/panels/components-panel.reel/components-panel.js +++ b/js/panels/components-panel.reel/components-panel.js | |||
@@ -302,6 +302,7 @@ exports.ComponentsPanel = Montage.create(Component, { | |||
302 | componentInstanceOnFirstDraw: { | 302 | componentInstanceOnFirstDraw: { |
303 | value: function(instance) { | 303 | value: function(instance) { |
304 | this.application.ninja.elementMediator.addElements(instance.element); | 304 | this.application.ninja.elementMediator.addElements(instance.element); |
305 | this.application.ninja.currentDocument.model.mObjects.push(instance); | ||
305 | } | 306 | } |
306 | }, | 307 | }, |
307 | 308 | ||