From 8556f19a8691fe72791989014c62cb92b8bddb19 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Fri, 15 Jun 2012 10:20:48 -0700 Subject: Material changes through the popup editor can effect multiple material instances within a single object. --- .../materials-popup.reel/materials-popup.js | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'js/panels/Materials/materials-popup.reel/materials-popup.js') diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.js b/js/panels/Materials/materials-popup.reel/materials-popup.js index 38a6865c..91d50234 100755 --- a/js/panels/Materials/materials-popup.reel/materials-popup.js +++ b/js/panels/Materials/materials-popup.reel/materials-popup.js @@ -160,14 +160,26 @@ exports.MaterialsPopup = Montage.create(Component, { var selection = this.application.ninja.selectedElements; if (selection && (selection.length > 0)) { - var canvas = selection[0]; - var obj; - if (canvas.elementModel && canvas.elementModel.shapeModel) obj = canvas.elementModel.shapeModel.GLGeomObj; - if (obj) + var nObjs = selection.length; + for (var iObj=0; iObj