Removed deprecations from dots2pathpoints
This commit is contained in:
parent
3e19afedd2
commit
8a9df3ab5e
@ -33,17 +33,16 @@ class Pathpoints2Dots(inkex.Effect):
|
|||||||
|
|
||||||
def effect(self):
|
def effect(self):
|
||||||
if len(self.svg.selected) != 2:
|
if len(self.svg.selected) != 2:
|
||||||
errormsg("Please select exact two objects:\n1. object representing path,\n2. object representing dots.")
|
inkex.errormsg("Please select exact two objects:\n1. object representing path,\n2. object representing dots.")
|
||||||
return
|
return
|
||||||
|
|
||||||
dot = self.svg.selected[0]
|
nodes = list(self.svg.selected.items())
|
||||||
iddot = dot.get('id')
|
iddot = nodes[0][0]
|
||||||
path = self.svg.selected[1]
|
idpath = nodes[1][0]
|
||||||
idpath = path.get('id')
|
dot = self.svg.selected[iddot]
|
||||||
|
path = self.svg.selected[idpath]
|
||||||
self.svg.selected.popitem()
|
self.svg.selected.popitem()
|
||||||
self.svg.selected.popitem()
|
self.svg.selected.popitem()
|
||||||
|
|
||||||
bb = dot.bounding_box()
|
bb = dot.bounding_box()
|
||||||
parent = path.find('..')
|
parent = path.find('..')
|
||||||
group = inkex.Group()
|
group = inkex.Group()
|
||||||
|
Reference in New Issue
Block a user