From 3ceb1282fa317023706e001bb4ec5ac61e40590f Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Tue, 12 Jun 2012 12:58:50 -0700 Subject: Components - Add object instance to model's objects array --- js/panels/components-panel.reel/components-panel.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js') 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, { componentInstanceOnFirstDraw: { value: function(instance) { this.application.ninja.elementMediator.addElements(instance.element); + this.application.ninja.currentDocument.model.mObjects.push(instance); } }, -- cgit v1.2.3