diff options
author | Valerio Virgillito | 2012-03-21 13:24:51 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-21 13:24:51 -0700 |
commit | 3f71deb9b8d1c99dbcf8c8a251903dab7c92dce0 (patch) | |
tree | e94c5619282b38ed0d0d3c826d6dbedac279e544 /js/panels/Materials/materials-popup.reel | |
parent | 8ee7f05753e84def43c158c30af7ecac68523847 (diff) | |
parent | 9facfb41b0b0f9fab9ddc9c8473af1d1d7e1ff18 (diff) | |
download | ninja-3f71deb9b8d1c99dbcf8c8a251903dab7c92dce0.tar.gz |
Merge branch 'refs/heads/master' into montage-integration
Diffstat (limited to 'js/panels/Materials/materials-popup.reel')
-rwxr-xr-x | js/panels/Materials/materials-popup.reel/materials-popup.js | 6 |
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") || |