diff options
Diffstat (limited to 'js/lib/geom/geom-obj.js')
-rwxr-xr-x | js/lib/geom/geom-obj.js | 24 |
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": |