aboutsummaryrefslogtreecommitdiff
path: root/js/models
diff options
context:
space:
mode:
authorhwc4872012-04-04 05:52:54 -0700
committerhwc4872012-04-04 05:52:54 -0700
commit0f31002ca696c1ef303d2926a504afd27305e94f (patch)
tree8f3684ff426fd94db338b802ecf1eed643efde9d /js/models
parent4b199cf04af83f59895d4d1e9a2d8443c1ec8e06 (diff)
downloadninja-0f31002ca696c1ef303d2926a504afd27305e94f.tar.gz
Added Flag material
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