aboutsummaryrefslogtreecommitdiff
path: root/js/models/materials-model.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/models/materials-model.js')
-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