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>2017-05-12 11:54:44 +0300
committerLukas Treyer <treyer@arch.ethz.ch>2017-05-12 11:54:44 +0300
commitcb5b13309073ae7593bc537e8c14ab0bd4f15470 (patch)
tree017ca9e1f2e9be72131868be856403c652134762 /io_import_dxf
parent32b977d1b2f4abb9f09308636ba10c224c6a76f6 (diff)
'Invalid'/ self intersecting BMFaces are apparently not added to the bmesh anymore? in the dxf importer there is a section that tests for selfintersecting quad faces and removes them; but here I now get an error, that the face has been removed.So for now I just wrap it in a try/except clause to make it work across several versions?
Diffstat (limited to 'io_import_dxf')
-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 3f80c3a1..3d474d25 100644
--- a/io_import_dxf/dxfimport/do.py
+++ b/io_import_dxf/dxfimport/do.py
@@ -509,7 +509,10 @@ class Do:
ii = geometry.intersect_line_line(edge1, edge2, opposite1, opposite2)
if ii is not None:
if _is_on_edge(ii[0]):
- bm.faces.remove(face)
+ try:
+ bm.faces.remove(face)
+ except Exception as e:
+ pass
iv = bm.verts.new(ii[0])
bm.faces.new((verts[i], iv, verts[(i + 3) % 4]))
bm.faces.new((verts[i + 1], iv, verts[i + 2]))