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:
@@ -152,10 +152,14 @@ def edge_face_count_dict(mesh):
|
|||||||
faces using each edge.
|
faces using each edge.
|
||||||
:rtype: dict
|
: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 = {}
|
face_edge_count = {}
|
||||||
for face_keys in face_edge_keys:
|
loops = mesh.loops
|
||||||
for key in face_keys:
|
edges = mesh.edges
|
||||||
|
for poly in mesh.polygons:
|
||||||
|
for i in poly.loop_indices:
|
||||||
|
key = edges[loops[i].edge_index].key
|
||||||
try:
|
try:
|
||||||
face_edge_count[key] += 1
|
face_edge_count[key] += 1
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user