aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-29 11:49:51 -0700
committerNivesh Rajbhandari2012-06-29 11:49:51 -0700
commit01783536d2245b474eb1f89df673bfabb006cbdd (patch)
treed40143f88e4ebceb2520f4a16ee7f453933a9d71 /js/lib/rdge
parente3eb68c3a0b911acd873ee6211931b8f4e620030 (diff)
downloadninja-01783536d2245b474eb1f89df673bfabb006cbdd.tar.gz
Need to special case linear gradient, radial gradient and uber materials when applying fill and stroke colors.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/lib/rdge')
-rwxr-xr-xjs/lib/rdge/materials/uber-material.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/uber-material.js b/js/lib/rdge/materials/uber-material.js
index 347e45d3..e1c6781d 100755
--- a/js/lib/rdge/materials/uber-material.js
+++ b/js/lib/rdge/materials/uber-material.js
@@ -99,6 +99,18 @@ var UberMaterial = function UberMaterial() {
99 } 99 }
100 } 100 }
101 }; 101 };
102
103 this.hasProperty = function( prop )
104 {
105 if(prop === "color") return true;
106
107 var propNames = [], dummy = [];
108 this.getAllProperties( propNames, dummy, dummy, dummy )
109 for (var i=0; i<propNames.length; i++)
110 {
111 if (prop === propNames[i]) return true;
112 }
113 };
102 /////////////////////////////////////////////////////////////////////// 114 ///////////////////////////////////////////////////////////////////////
103 115
104 // define the 4 lights 116 // define the 4 lights