aboutsummaryrefslogtreecommitdiff
path: root/js/models
diff options
context:
space:
mode:
authorhwc4872012-03-20 16:26:52 -0700
committerhwc4872012-03-20 16:26:52 -0700
commit98a02c1ac6f189aba93d7cce64ba5bdbc0617f6c (patch)
tree93a3fc2c1aaffb97edeecc890e5540f7d15ad838 /js/models
parent43ea2515f1482eeb77454f407111f0568c056f72 (diff)
downloadninja-98a02c1ac6f189aba93d7cce64ba5bdbc0617f6c.tar.gz
Bug Fixes for Canvas & WebGL File IO
Diffstat (limited to 'js/models')
-rwxr-xr-xjs/models/materials-model.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/models/materials-model.js b/js/models/materials-model.js
index a45b0c72..9c692f45 100755
--- a/js/models/materials-model.js
+++ b/js/models/materials-model.js
@@ -112,7 +112,7 @@ exports.MaterialsModel = Montage.create(Component, {
112 value: function (materialName) { 112 value: function (materialName) {
113 var index = this.getIndexOfMaterial(materialName); 113 var index = this.getIndexOfMaterial(materialName);
114 if(index !== -1) { 114 if(index !== -1) {
115 return this._materials[index]; 115 return this._materials[index].dup();
116 } 116 }
117 } 117 }
118 }, 118 },
@@ -123,7 +123,7 @@ exports.MaterialsModel = Montage.create(Component, {
123 { 123 {
124 var index = this.getIndexOfMaterialByShader( shaderName ); 124 var index = this.getIndexOfMaterialByShader( shaderName );
125 if (index >= 0) 125 if (index >= 0)
126 return this._materials[index]; 126 return this._materials[index].dup();
127 } 127 }
128 }, 128 },
129 129