diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-29 17:50:06 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-29 17:50:06 +0300 |
commit | 67b0a56743b2786d27dc34d4d7c14cae9fe4ce16 (patch) | |
tree | d01054a6b8bb08a25d30dd4b6950f6ec179c38d8 /io_curve_svg | |
parent | f99816d142ec94f8af8ce4d1b39c06e68316e9e2 (diff) |
SVG: Cleanup, don't use semicolon
Diffstat (limited to 'io_curve_svg')
-rw-r--r-- | io_curve_svg/import_svg.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index c597aaf0..8cfd1178 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -47,10 +47,9 @@ SVGEmptyStyles = {'useFill': None, def srgb_to_linearrgb(c): if c < 0.04045: - return 0.0 if c < 0.0 else c * (1.0 / 12.92); + return 0.0 if c < 0.0 else c * (1.0 / 12.92) else: - return pow((c + 0.055) * (1.0 / 1.055), 2.4); - + return pow((c + 0.055) * (1.0 / 1.055), 2.4) def SVGParseFloat(s, i=0): """ |