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@blender.org>2022-11-10 13:11:41 +0300
committerSergey Sharybin <sergey@blender.org>2022-11-10 13:11:41 +0300
commitc226f867affd12881533a54c8c90ac6eebfaca6c (patch)
treef33cedee70f882f49f020078b13c4b1be208b3fd
parent6471c7afb8d7cc1725bae79a23fdd1e08fa8f68c (diff)
parenta28c3f9cc009958695e33c929a4524d10e0d31e0 (diff)
Merge branch 'blender-v3.4-release'
-rw-r--r--io_curve_svg/import_svg.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index c6461852..97dad798 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -964,16 +964,17 @@ class SVGGeometry:
Push transformation matrix
"""
- self._context['transform'].append(matrix)
- self._context['matrix'] = self._context['matrix'] @ matrix
+ current_matrix = self._context['matrix']
+ self._context['matrix_stack'].append(current_matrix)
+ self._context['matrix'] = current_matrix @ matrix
def _popMatrix(self):
"""
Pop transformation matrix
"""
- matrix = self._context['transform'].pop()
- self._context['matrix'] = self._context['matrix'] @ matrix.inverted()
+ old_matrix = self._context['matrix_stack'].pop()
+ self._context['matrix'] = old_matrix
def _pushStyle(self, style):
"""
@@ -1822,9 +1823,9 @@ class SVGLoader(SVGGeometryContainer):
rect = (0, 0)
self._context = {'defines': {},
- 'transform': [],
'rects': [rect],
'rect': rect,
+ 'matrix_stack': [],
'matrix': m,
'materials': {},
'styles': [None],