Merge branch 'master' of https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X
This commit is contained in:
commit
1cb3277f65
@ -67,6 +67,9 @@ class BarrelDistorsion(inkex.EffectExtension):
|
||||
if node.tag == inkex.addNS('path', 'svg'):
|
||||
path = Path(node.get('d')).to_arrays()
|
||||
nodes += path
|
||||
if len(nodes) == 0:
|
||||
inkex.utils.debug("Selection is invalid. Please change selection to paths only.")
|
||||
exit(1)
|
||||
nodes_filtered = [x for x in nodes if x[0] != 'Z']
|
||||
x_coordinates = [x[-1][-2] for x in nodes_filtered]
|
||||
y_coordinates = [y[-1][-1] for y in nodes_filtered]
|
||||
|
Reference in New Issue
Block a user