diff options
author | Nivesh Rajbhandari | 2012-01-31 17:30:53 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-01-31 17:30:53 -0800 |
commit | affafafc4db16e5f918c74dfc919025d4c563cc6 (patch) | |
tree | bae583f698d4993c52b31432b598bf4254f59bb0 /js/controllers/elements/shapes-controller.js | |
parent | ff700e7921b8e30b89e963c48888c8296ed16f52 (diff) | |
download | ninja-affafafc4db16e5f918c74dfc919025d4c563cc6.tar.gz |
Updated color code to handle shapes.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers/elements/shapes-controller.js')
-rw-r--r-- | js/controllers/elements/shapes-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index d34644a7..92353f28 100644 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -168,7 +168,7 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
168 | setColor: { | 168 | setColor: { |
169 | value: function(el, color, isFill) { | 169 | value: function(el, color, isFill) { |
170 | // TODO - Format color for webGL before setting | 170 | // TODO - Format color for webGL before setting |
171 | color = color.webGlColor; | 171 | color = color.webGlColor || color.color.webGlColor; |
172 | if(isFill) | 172 | if(isFill) |
173 | { | 173 | { |
174 | el.elementModel.shapeModel.GLGeomObj.setFillColor(color); | 174 | el.elementModel.shapeModel.GLGeomObj.setFillColor(color); |