Skip to content

Commit

Permalink
Very small optimization in mesh hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
ModEngineer committed Apr 19, 2022
1 parent e6074a3 commit 0d7b1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppl_meshexport_addon/utils/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ def getMeshHash(self):
(tuple(edge.verts[0].co),
tuple(edge.verts[0].link_loops[0][bm.loops.layers.
color.active])
if len(edge.verts[0].link_loops) > 0 else None),
if edge.verts[0].link_loops else None),
(tuple(edge.verts[1].co),
tuple(edge.verts[1].link_loops[0][bm.loops.layers.
color.active])
if len(edge.verts[1].link_loops) > 0 else None))),
if edge.verts[1].link_loops else None))),
edge.seam) for edge in bm.edges))))
else:
return str(
Expand Down

0 comments on commit 0d7b1cf

Please sign in to comment.