aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/geom-obj.js
diff options
context:
space:
mode:
authorJohn Mayhew2012-07-24 15:46:16 -0700
committerJohn Mayhew2012-07-24 15:46:16 -0700
commit9f240b8b9b1f5fb0f145c343ca5e533e25e81374 (patch)
tree407564eaa6466e8d4cf2eeee0c56dc623243586f /js/lib/geom/geom-obj.js
parentd25359c75089215ee48838db081fd3d51cbbd85f (diff)
parent21d74af1e9fc57cc25cea8aa7408beabf79ff2f3 (diff)
downloadninja-9f240b8b9b1f5fb0f145c343ca5e533e25e81374.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja
Diffstat (limited to 'js/lib/geom/geom-obj.js')
-rwxr-xr-xjs/lib/geom/geom-obj.js24
1 files changed, 22 insertions, 2 deletions
diff --git a/js/lib/geom/geom-obj.js b/js/lib/geom/geom-obj.js
index 3cd3a89b..7b4e49fa 100755
--- a/js/lib/geom/geom-obj.js
+++ b/js/lib/geom/geom-obj.js
@@ -205,6 +205,26 @@ exports.GeomObj = Object.create(Object.prototype, {
205 /////////////////////////////////////////////////////////////////////// 205 ///////////////////////////////////////////////////////////////////////
206 // Methods 206 // Methods
207 /////////////////////////////////////////////////////////////////////// 207 ///////////////////////////////////////////////////////////////////////
208 initColors: {
209 value: function() {
210 if(this._strokeColor && this._strokeMaterial) {
211 if(this._strokeMaterial.hasProperty("color")) {
212 this._strokeMaterial.setProperty( "color", this._strokeColor );
213 } else if (this._strokeMaterial && (this._strokeMaterial.gradientType === this._strokeColor.gradientMode)) {
214 this._strokeMaterial.setGradientData(this._strokeColor.color);
215 }
216 }
217
218 if(this._fillColor && this._fillMaterial) {
219 if(this._fillMaterial.hasProperty("color")) {
220 this._fillMaterial.setProperty( "color", this._fillColor );
221 } else if (this._fillMaterial && (this._fillMaterial.gradientType === this._fillColor.gradientMode)) {
222 this._fillMaterial.setGradientData(this._fillColor.color);
223 }
224 }
225 }
226 },
227
208 setMaterialColor: { 228 setMaterialColor: {
209 value: function(c, type) { 229 value: function(c, type) {
210 var i = 0, 230 var i = 0,
@@ -385,8 +405,8 @@ exports.GeomObj = Object.create(Object.prototype, {
385 case "plasma": 405 case "plasma":
386 case "deform": 406 case "deform":
387 case "water": 407 case "water":
388 case "paris": 408 case "blueSky":
389 case "raiders": 409 case "darkBlur":
390 case "tunnel": 410 case "tunnel":
391 case "reliefTunnel": 411 case "reliefTunnel":
392 case "squareTunnel": 412 case "squareTunnel":