diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-02-23 00:36:24 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-02-23 00:36:24 +0300 |
commit | 68ad532092fcd516092711992b2c72fbf6ae04e8 (patch) | |
tree | f016daa019f199675cba8511876000b4fb61da17 /io_curve_svg/import_svg.py | |
parent | 9c518302674ae1bef65bbc933a43af480046817e (diff) |
SVG format fixes:
- Fixed silly error caused by copy-pasteing code from class
(accessing to self from simple function)
- Fix for illustrator path format -- it doesn't place spaces before
"minus" sign of next number. Maybe it's time to go out from stypid
string replacement-splitting to slower but smarter token parser?
Diffstat (limited to 'io_curve_svg/import_svg.py')
-rw-r--r-- | io_curve_svg/import_svg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 19cd5d5d..7d34ab63 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -323,7 +323,7 @@ def SVGParseStyles(node, context): return styles if styles['useFill'] is None: - fill = self._node.getAttribute('fill') + fill = node.getAttribute('fill') if fill: fill = fill.lower() if fill == 'none': @@ -354,7 +354,7 @@ class SVGPathData: """ # Convert to easy-to-parse format - d = d.replace(',', ' ') + d = d.replace(',', ' ').replace('-', ' -') d = re.sub('([A-z])', ' \\1 ', d) self._data = d.split() |