diff options
author | Valerio Virgillito | 2012-03-28 22:44:35 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-28 22:44:35 -0700 |
commit | 7542f62ee7a4845c2472834d0dbe91bf669634da (patch) | |
tree | 657e63dfec155ba18dc8c170d1b8f8179a936603 /js/controllers/elements | |
parent | f09921e6085f4b16c6e69ac8bfd67eef644fc04e (diff) | |
parent | 3fd2cdb59027b3f973b9165db9db4fdd22026941 (diff) | |
download | ninja-7542f62ee7a4845c2472834d0dbe91bf669634da.tar.gz |
Merge branch 'refs/heads/master' into components
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index 5b9e4672..f0e9458b 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -274,6 +274,10 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
274 | color = this.getShapeProperty(el, "stroke"); | 274 | color = this.getShapeProperty(el, "stroke"); |
275 | } | 275 | } |
276 | 276 | ||
277 | if(!css) { | ||
278 | return null; | ||
279 | } | ||
280 | |||
277 | css = this.application.ninja.colorController.colorModel.webGlToCss(color); | 281 | css = this.application.ninja.colorController.colorModel.webGlToCss(color); |
278 | return this.application.ninja.colorController.getColorObjFromCss(css); | 282 | return this.application.ninja.colorController.getColorObjFromCss(css); |
279 | } | 283 | } |