Skip to content
Snippets Groups Projects
Commit ebf413ee authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#27860] Quake MAP export error for 2.58.1

parent 8c3bf317
No related branches found
No related tags found
No related merge requests found
...@@ -212,19 +212,19 @@ def is_tricyl_facegroup(faces): ...@@ -212,19 +212,19 @@ def is_tricyl_facegroup(faces):
verts = {} verts = {}
tottri = 0 tottri = 0
for f in faces: for f in faces:
if len(f) == 3: if len(f.vertices) == 3:
tottri += 1 tottri += 1
for v in f: for vi in f.vertices:
verts[v.index] = 0 verts[vi] = 0
if len(verts) != 6 or tottri != 2: if len(verts) != 6 or tottri != 2:
return False return False
# Now check that each vert has 3 face users # Now check that each vert has 3 face users
for f in faces: for f in faces:
for v in f: for vi in f.vertices:
verts[v.index] += 1 verts[vi] += 1
for v in verts.values(): for v in verts.values():
if v != 3: # vert has 3 users? if v != 3: # vert has 3 users?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment