aboutsummaryrefslogtreecommitdiff
path: root/js/models
diff options
context:
space:
mode:
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 97a48f5a..b4595bd6 100755
--- a/js/models/materials-model.js
+++ b/js/models/materials-model.js
@@ -118,7 +118,7 @@ exports.MaterialsModel = Montage.create(Component, {
118 value: function (materialName) { 118 value: function (materialName) {
119 var index = this.getIndexOfMaterial(materialName); 119 var index = this.getIndexOfMaterial(materialName);
120 if(index !== -1) { 120 if(index !== -1) {
121 return this._materials[index].dup(); 121 return this._materials[index];
122 } 122 }
123 } 123 }
124 }, 124 },
@@ -129,7 +129,7 @@ exports.MaterialsModel = Montage.create(Component, {
129 { 129 {
130 var index = this.getIndexOfMaterialByShader( shaderName ); 130 var index = this.getIndexOfMaterialByShader( shaderName );
131 if (index >= 0) 131 if (index >= 0)
132 return this._materials[index].dup(); 132 return this._materials[index];
133 } 133 }
134 }, 134 },
135 135