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:
Diffstat (limited to 'io_curve_svg/import_svg.py')
-rw-r--r--io_curve_svg/import_svg.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 611498aa..a1df2204 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -102,13 +102,10 @@ def SVGParseFloat(s, i=0):
token += s[i]
i += 1
- if s[i].isdigit():
- while i < n and s[i].isdigit():
- token += s[i]
- i += 1
- else:
- raise Exception('Invalid float value near ' +
- s[start:start + 10])
+ if s[i].isdigit():
+ while i < n and s[i].isdigit():
+ token += s[i]
+ i += 1
else:
raise Exception('Invalid float value near ' + s[start:start + 10])
@@ -1761,6 +1758,7 @@ class SVGGeometrySVG(SVGGeometryContainer):
"""
rect = SVGRectFromNode(self._node, self._context)
+ self._pushRect(rect)
matrix = self.getNodeMatrix()
@@ -1772,7 +1770,6 @@ class SVGGeometrySVG(SVGGeometryContainer):
matrix = matrix * Matrix.Translation([0.0, -document_height , 0.0])
self._pushMatrix(matrix)
- self._pushRect(rect)
super()._doCreateGeom(False)