diff options
author | hwc487 | 2012-04-04 05:52:54 -0700 |
---|---|---|
committer | hwc487 | 2012-04-04 05:52:54 -0700 |
commit | 0f31002ca696c1ef303d2926a504afd27305e94f (patch) | |
tree | 8f3684ff426fd94db338b802ecf1eed643efde9d /js/models | |
parent | 4b199cf04af83f59895d4d1e9a2d8443c1ec8e06 (diff) | |
download | ninja-0f31002ca696c1ef303d2926a504afd27305e94f.tar.gz |
Added Flag material
Diffstat (limited to 'js/models')
-rwxr-xr-x | js/models/materials-model.js | 4 |
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 | ||