Fix T45460: SVG importer scale issues

Push SVG tag rectangle before calculating the matrix.
This way scale will use proper SVG width and height.
This commit is contained in:
Sergey Sharybin 2016-01-08 14:26:25 +05:00
parent fe69dd9ee8
commit 2fb7194dba
Notes: blender-bot 2023-02-14 19:54:18 +01:00
Referenced by issue #45460, SVG importer scale issues
1 changed files with 1 additions and 1 deletions

View File

@ -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)