fix non-selection in VH to Line Extension
This commit is contained in:
parent
9e98e7e842
commit
60b6452796
@ -30,6 +30,7 @@ class VHToLine(inkex.Effect):
|
||||
def effect(self):
|
||||
if len(self.svg.selected) == 0: exit("Please select at least one path.")
|
||||
for obj in self.svg.selected: # The objects are the paths, which may be compound
|
||||
if obj.tag == inkex.addNS('path','svg'):
|
||||
curr = self.svg.selected[obj]
|
||||
raw = Path(curr.get("d")).to_arrays()
|
||||
subpaths, prev = [], 0
|
||||
@ -59,6 +60,7 @@ class VHToLine(inkex.Effect):
|
||||
#inkex.utils.debug(simpath[i])
|
||||
seg.append(simpath[i])
|
||||
curr.set("d", Path(seg))
|
||||
|
||||
else:
|
||||
inkex.utils.debug("Object " + obj.get('id') + " is not a path. Please convert it to a path first.")
|
||||
if __name__ == '__main__':
|
||||
VHToLine().run()
|
Reference in New Issue
Block a user