Only merge paths with the same color and width

Related: #353
This commit is contained in:
Florian Festi 2022-06-27 07:54:39 +02:00
parent 73a46460ee
commit fd30b8b0b7
1 changed files with 1 additions and 2 deletions

View File

@ -122,8 +122,7 @@ class Part:
not self.path[0][0] == "T"):
for p in reversed(self.pathes):
xy1 = p.path[-1][1:3]
if points_equal(*xy0, *xy1):
# todo: check for same color and linewidth
if points_equal(*xy0, *xy1) and p.params == params:
p.path.extend(self.path[1:])
self.path = []
return p