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>2016-01-08 12:26:25 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-01-08 12:26:25 +0300
commit2fb7194dba7a60c82642032c780a0652fdc56b88 (patch)
tree298559044b7262f248bf822e539426b26a985ced /io_curve_svg
parentfe69dd9ee86783786399506905324ef0c4cdd44e (diff)
Fix T45460: SVG importer scale issues
Push SVG tag rectangle before calculating the matrix. This way scale will use proper SVG width and height.
Diffstat (limited to 'io_curve_svg')
-rw-r--r--io_curve_svg/import_svg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 611498aa..333b8237 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -1761,6 +1761,7 @@ class SVGGeometrySVG(SVGGeometryContainer):
"""
rect = SVGRectFromNode(self._node, self._context)
+ self._pushRect(rect)
matrix = self.getNodeMatrix()
@@ -1772,7 +1773,6 @@ class SVGGeometrySVG(SVGGeometryContainer):
matrix = matrix * Matrix.Translation([0.0, -document_height , 0.0])
self._pushMatrix(matrix)
- self._pushRect(rect)
super()._doCreateGeom(False)