fix deprecation in paths_to_openscad
This commit is contained in:
parent
a4d367e4fb
commit
b255672418
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user