Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Treyer <treyer@arch.ethz.ch>2016-10-07 11:53:05 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-10-19 15:42:29 +0300
commitd791f42c54bea18a0a528747153aa7162383bed5 (patch)
tree3d6c243a099e4311e7ce4e5c564a796a9ba33921
parentc447cbcb6906f6f7cecad2aa2e9dfc74bedddcf7 (diff)
bugfix for T49593: more secure checking for same points in bulgepoly_to_cubic
-rw-r--r--io_import_dxf/dxfimport/convert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_import_dxf/dxfimport/convert.py b/io_import_dxf/dxfimport/convert.py
index c21d274c..824b1958 100644
--- a/io_import_dxf/dxfimport/convert.py
+++ b/io_import_dxf/dxfimport/convert.py
@@ -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: