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
Branches
Tags
No related merge requests found
......@@ -212,19 +212,19 @@ def is_tricyl_facegroup(faces):
verts = {}
tottri = 0
for f in faces:
if len(f) == 3:
if len(f.vertices) == 3:
tottri += 1
for v in f:
verts[v.index] = 0
for vi in f.vertices:
verts[vi] = 0
if len(verts) != 6 or tottri != 2:
return False
# Now check that each vert has 3 face users
for f in faces:
for v in f:
verts[v.index] += 1
for vi in f.vertices:
verts[vi] += 1
for v in verts.values():
if v != 3: # vert has 3 users?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment