fix deprecation in paths_to_openscad

This commit is contained in:
Mario Voigt 2022-11-14 12:02:31 +01:00
parent a4d367e4fb
commit b255672418

View File

@ -981,7 +981,7 @@ class PathsToOpenSCAD(inkex.EffectExtension):
y = float(node.get("y", "0")) y = float(node.get("y", "0"))
# Note: the transform has already been applied # Note: the transform has already been applied
if (x != 0) or (y != 0): if (x != 0) or (y != 0):
matNew2 = matNew * Transform("translate(%f,%f)" % (x, y)) matNew2 = matNew @ Transform("translate(%f,%f)" % (x, y))
else: else:
matNew2 = matNew matNew2 = matNew
v = node.get("visibility", v) v = node.get("visibility", v)
@ -1230,7 +1230,7 @@ class PathsToOpenSCAD(inkex.EffectExtension):
if parent_transform is None: if parent_transform is None:
return tr return tr
else: else:
return parent_transform * tr return parent_transform @ tr
else: else:
return self.docTransform return self.docTransform