aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Materials/materials-popup.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-21 13:24:51 -0700
committerValerio Virgillito2012-03-21 13:24:51 -0700
commit3f71deb9b8d1c99dbcf8c8a251903dab7c92dce0 (patch)
treee94c5619282b38ed0d0d3c826d6dbedac279e544 /js/panels/Materials/materials-popup.reel
parent8ee7f05753e84def43c158c30af7ecac68523847 (diff)
parent9facfb41b0b0f9fab9ddc9c8473af1d1d7e1ff18 (diff)
downloadninja-3f71deb9b8d1c99dbcf8c8a251903dab7c92dce0.tar.gz
Merge branch 'refs/heads/master' into montage-integration
Diffstat (limited to 'js/panels/Materials/materials-popup.reel')
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.js b/js/panels/Materials/materials-popup.reel/materials-popup.js
index 193e72b7..b44761bc 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.js
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.js
@@ -214,7 +214,11 @@ exports.MaterialsPopup = Montage.create(Component, {
214 enumerable: true, 214 enumerable: true,
215 value: function(materialID) 215 value: function(materialID)
216 { 216 {
217 this._materialName = materialID; 217 // Note that setting Array.length = 0 will empty arrays,
218 // which is fine if you use getMaterialData to get a new array, but not for the
219 // dummyData arrays.
220 this._materialsData.length = 0;
221 this._materialName = materialID;
218 if( 222 if(
219 (materialID === "UberMaterial") || 223 (materialID === "UberMaterial") ||
220 (materialID === "FlatMaterial") || 224 (materialID === "FlatMaterial") ||