Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-02-23 00:36:24 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2011-02-23 00:36:24 +0300
commit68ad532092fcd516092711992b2c72fbf6ae04e8 (patch)
treef016daa019f199675cba8511876000b4fb61da17 /io_curve_svg
parent9c518302674ae1bef65bbc933a43af480046817e (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')
-rw-r--r--io_curve_svg/import_svg.py4
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()