Skip to content

Commit 782ccf5

Browse files
committed
fix #17711
1 parent 32e3ac0 commit 782ccf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/net/remap_additionals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ def remap_edge(options, obj, edgeID, pos=None, size=None):
198198
edge2shapelen = gh.polyLength(edge2.getShape())
199199
pos2 = gh.polygonOffsetWithMinimumDistanceToPoint((x2, y2), edge2.getShape())
200200
pos2 = pos2 / edge2shapelen * edge2.getLength()
201+
else:
202+
pos2 = None
201203

202204
return edge2, pos2
203205

0 commit comments

Comments
 (0)