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/convert.py')
-rw-r--r--io_import_dxf/dxfimport/convert.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/io_import_dxf/dxfimport/convert.py b/io_import_dxf/dxfimport/convert.py
index 824b1958..717bd4f2 100644
--- a/io_import_dxf/dxfimport/convert.py
+++ b/io_import_dxf/dxfimport/convert.py
@@ -278,8 +278,14 @@ def split_by_width(entity):
en_template.bulge = []
en_template.width = []
en_template.tangents = []
- en_template.is_closed = False
-
+
+ # is_closed is an attrib only on polyline
+ if en_template.dxftype == 'POLYLINE':
+ en_template.is_closed = False
+ else:
+ # disable closed flag (0x01) when is_closed is a @property
+ en_template.flags ^= 1
+
i = 0
for pair, same_width in itertools.groupby(entity.width, key=lambda w: WidthTuple(w)):
en = deepcopy(en_template)