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>2014-05-13 18:47:01 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-05-13 18:47:38 +0400
commitfb01dd9e549de60ff34585d10f8bc3ecb5025ed8 (patch)
treea8dce62f84526c93a4354f66b962cbc86a139027 /io_curve_svg
parent1989bc2ee98052b5cb73b090c499da1fd2bbef08 (diff)
Fix document height parsing when height contains units
Diffstat (limited to 'io_curve_svg')
-rw-r--r--io_curve_svg/import_svg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 740dd817..e114ca33 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -1754,7 +1754,8 @@ class SVGGeometrySVG(SVGGeometryContainer):
# Better Inkscape compatibility: match document origin with
# 3D space origin.
if self._node.getAttribute('inkscape:version'):
- document_height = float(self._node.getAttribute('height'))
+ raw_height = self._node.getAttribute('height')
+ document_height = SVGParseCoord(raw_height, 1.0)
matrix = matrix * Matrix.Translation([0.0, -document_height , 0.0])
self._pushMatrix(matrix)