diff options
author | Valerio Virgillito | 2012-03-13 11:16:47 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-13 11:16:47 -0700 |
commit | 9f3307810541ca6f95d7ca6d1febe8afdcd2c101 (patch) | |
tree | dac91cf9c9f65b33886160db3aae364873a4352b /js/models | |
parent | 91335d6572a611ecde7a71dbbfdb82bdb40f7e2b (diff) | |
parent | 2ac9a855724cc4ccf147ce4130a733a84cc647c3 (diff) | |
download | ninja-9f3307810541ca6f95d7ca6d1febe8afdcd2c101.tar.gz |
Merge pull request #110 from mqg734/WebGLFixes
Gradient Support for Shapes and Eyedropper support for gradients. Also fixed 3d bug when moving multiple selections in 3d using the Selection Tool
Diffstat (limited to 'js/models')
-rwxr-xr-x | js/models/color-model.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/models/color-model.js b/js/models/color-model.js index 2c86422f..4189fbef 100755 --- a/js/models/color-model.js +++ b/js/models/color-model.js | |||
@@ -574,6 +574,9 @@ exports.ColorModel = Montage.create(Component, { | |||
574 | temp = this.hslToRgb(color.h/360, color.s/100, color.l/100); | 574 | temp = this.hslToRgb(color.h/360, color.s/100, color.l/100); |
575 | } else if (color.r !== undefined) { | 575 | } else if (color.r !== undefined) { |
576 | temp = color; | 576 | temp = color; |
577 | } else if (color.gradientMode) { | ||
578 | // TODO - Need to handle gradients at some point | ||
579 | return null; | ||
577 | } | 580 | } |
578 | temp.a = color.a; | 581 | temp.a = color.a; |
579 | } | 582 | } |