bugfix for T49593: more secure checking for same points in bulgepoly_to_cubic
This commit is contained in:
parent
77f61a1627
commit
2f3e4104de
Notes:
blender-bot
2023-02-14 19:44:19 +01:00
Referenced by issue #49593, dxf importer fails to import correctly
|
@ -175,7 +175,7 @@ def bulgepoly_to_cubic(do, lwpolyline):
|
|||
Reference: http://www.afralisp.net/archive/lisp/Bulges1.htm
|
||||
"""
|
||||
def handle_segment(last, point, bulge):
|
||||
if bulge != 0 and (point - last).length != 0:
|
||||
if bulge != 0 and not ((point - last).length == 0 or point == last):
|
||||
arc = bulge_to_arc(last, point, bulge)
|
||||
cubic_bezier = do.arc(arc, None, aunits=1, angdir=arc.angdir, angbase=0)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue