aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements
diff options
context:
space:
mode:
authorPushkar Joshi2012-03-27 12:43:50 -0700
committerPushkar Joshi2012-03-27 12:43:50 -0700
commit02a34df0ec3201199d209d43f621898b5607c150 (patch)
treed520b35afb0a8154abe417dce232c263a89794ce /js/controllers/elements
parent903b01b9d0501e6f974034273385a0517107b1e3 (diff)
parent675fffb08f570783f055471501f94fc273de2b9e (diff)
downloadninja-02a34df0ec3201199d209d43f621898b5607c150.tar.gz
Merge branch 'master' into brushtool
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-xjs/controllers/elements/shapes-controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js
index 68a82762..ef453bea 100755
--- a/js/controllers/elements/shapes-controller.js
+++ b/js/controllers/elements/shapes-controller.js
@@ -336,6 +336,10 @@ exports.ShapesController = Montage.create(CanvasController, {
336 color = this.getShapeProperty(el, "stroke"); 336 color = this.getShapeProperty(el, "stroke");
337 } 337 }
338 338
339 if(!css) {
340 return null;
341 }
342
339 css = this.application.ninja.colorController.colorModel.webGlToCss(color); 343 css = this.application.ninja.colorController.colorModel.webGlToCss(color);
340 return this.application.ninja.colorController.getColorObjFromCss(css); 344 return this.application.ninja.colorController.getColorObjFromCss(css);
341 } 345 }