diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-10 22:00:44 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-10 22:00:44 +0300 |
commit | 3c5d5fb1cad25d75df3a3a032e86a58957311fd2 (patch) | |
tree | 7065899ee9e1a75d79b9558607827009874f212d /io_curve_svg/import_svg.py | |
parent | 039f3646b5a2a3a76fd43df1a2cf68bc0242f1c7 (diff) | |
parent | 6266b4139503bb614576f15ea4e90870ac5e597d (diff) |
Merge branch 'master' into fbx_io_export_ignore_parentsfbx_io_export_ignore_parents
Conflicts:
io_scene_fbx/import_fbx.py
Diffstat (limited to 'io_curve_svg/import_svg.py')
-rw-r--r-- | io_curve_svg/import_svg.py | 13 |
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) |