diff options
author | Valerio Virgillito | 2012-06-29 14:57:00 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-29 14:57:00 -0700 |
commit | ec69c8761f798eaf39c4a154997f8bc54b7e47f4 (patch) | |
tree | 4f4136503c87a72f7af67a54dad69c14469ee01e /js/lib/rdge | |
parent | ecd9e3b3b09695e3e7115c04e75add5a20c5c6fe (diff) | |
parent | 81d75ac08ff24dc3078d79a9133e54f592c23026 (diff) | |
download | ninja-ec69c8761f798eaf39c4a154997f8bc54b7e47f4.tar.gz |
Merge pull request #362 from mqg734/ColorGradientFix
Fixed not being able to draw linear and radial gradients and two other tools bugs.
Diffstat (limited to 'js/lib/rdge')
-rwxr-xr-x | js/lib/rdge/materials/uber-material.js | 12 |
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 |