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:
parent
fe69dd9ee8
commit
2fb7194dba
Notes:
blender-bot
2023-02-14 19:54:18 +01:00
Referenced by issue #45460, SVG importer scale issues
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue