diff options
author | Kruti Shah | 2012-07-03 10:08:44 -0700 |
---|---|---|
committer | Kruti Shah | 2012-07-03 10:08:44 -0700 |
commit | bf5e6d6febf0c15a00e7694d7fa2c85b0cf567fe (patch) | |
tree | 006f6243962aa2e2b59f688cf37b16162376dc39 /js/lib/rdge | |
parent | 3aa1242147264351b7d827fa25ecb5dc42bc2fb0 (diff) | |
parent | 12de4e49a309e210c13eb40b2ffa158ef2eb54a7 (diff) | |
download | ninja-bf5e6d6febf0c15a00e7694d7fa2c85b0cf567fe.tar.gz |
Merge branch 'refs/heads/ninjainternalmaster' into Timeline-local-kruti
Conflicts:
js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
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 |