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:
Diffstat (limited to 'io_import_dxf/dxfimport/do.py')
-rw-r--r--io_import_dxf/dxfimport/do.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/io_import_dxf/dxfimport/do.py b/io_import_dxf/dxfimport/do.py
index 82fea417..81124124 100644
--- a/io_import_dxf/dxfimport/do.py
+++ b/io_import_dxf/dxfimport/do.py
@@ -306,14 +306,7 @@ class Do:
e += 2 * pi
angle = e - s
- # curve == None means arc is called from bulge conversion
- # nothing should be projected at this stage, since the
- # lwpolyline (the only entity with bulges) will be projected
- # as a whole afterwars (small little error; took ages to debug)
- if curve is not None:
- vc = self.proj(en.center)
- else:
- vc = en.center
+ vc = Vector(en.center)
x_vec = Vector((1, 0, 0))
radius = en.radius
@@ -365,6 +358,10 @@ class Do:
if len(spline) % 3 != 1:
print("DXF-IMPORT: DO ARC: CHECK PLEASE: ", len(spline), spline)
+ # curve == None means arc is called from bulge conversion
+ # nothing should be projected at this stage, since the
+ # lwpolyline (the only entity with bulges) will be projected
+ # as a whole afterwards (small little error; took ages to debug)
if curve is not None:
self._cubic_bezier_open(spline, curve)
return spline