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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/io_import_dxf/dxfimport/do.py b/io_import_dxf/dxfimport/do.py
index 3d474d25..8954ba54 100644
--- a/io_import_dxf/dxfimport/do.py
+++ b/io_import_dxf/dxfimport/do.py
@@ -1135,7 +1135,10 @@ class Do:
return
has_varying_width = is_.varying_width(entity)
th = entity.thickness
- w = entity.width[0][0] if hasattr(entity, "width") else 0
+ w = 0
+ if hasattr(entity, "width"):
+ if len(entity.width) > 0 and len(entity.width[0]) > 0:
+ w = entity.width[0][0]
if w == 0 and not has_varying_width:
if th != 0: