fix bpy_extras.mesh_utils.edge_face_count_dict() helper api function.
it was using tessfaces when theres no need to.
This commit is contained in:
parent
98c5da4a81
commit
4ae3a28fcb
@ -152,10 +152,14 @@ def edge_face_count_dict(mesh):
|
||||
faces using each edge.
|
||||
:rtype: dict
|
||||
"""
|
||||
face_edge_keys = [face.edge_keys for face in mesh.tessfaces]
|
||||
|
||||
#face_edge_keys = [face.edge_keys for face in ]
|
||||
face_edge_count = {}
|
||||
for face_keys in face_edge_keys:
|
||||
for key in face_keys:
|
||||
loops = mesh.loops
|
||||
edges = mesh.edges
|
||||
for poly in mesh.polygons:
|
||||
for i in poly.loop_indices:
|
||||
key = edges[loops[i].edge_index].key
|
||||
try:
|
||||
face_edge_count[key] += 1
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user