[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1644] trunk/py/scripts/addons/ io_curve_svg/import_svg.py: SVG format fixes:
Sergey Sharybin
g.ulairi at gmail.com
Tue Feb 22 22:36:24 CET 2011
Revision: 1644
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1644
Author: nazgul
Date: 2011-02-22 21:36:24 +0000 (Tue, 22 Feb 2011)
Log Message:
-----------
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?
Modified Paths:
--------------
trunk/py/scripts/addons/io_curve_svg/import_svg.py
Modified: trunk/py/scripts/addons/io_curve_svg/import_svg.py
===================================================================
--- trunk/py/scripts/addons/io_curve_svg/import_svg.py 2011-02-22 16:37:16 UTC (rev 1643)
+++ trunk/py/scripts/addons/io_curve_svg/import_svg.py 2011-02-22 21:36:24 UTC (rev 1644)
@@ -323,7 +323,7 @@
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 @@
"""
# Convert to easy-to-parse format
- d = d.replace(',', ' ')
+ d = d.replace(',', ' ').replace('-', ' -')
d = re.sub('([A-z])', ' \\1 ', d)
self._data = d.split()
More information about the Bf-extensions-cvs
mailing list