Skip to content

Commit

Permalink
chore: add is_influence explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpq committed Aug 17, 2024
1 parent 8d48b4b commit 11216cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/lol_blender/operators/skinned/Export.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def poll(cls, context):

def export_armature(self, context: bpy.types.Context, l: Any, mat):
influences = list(map(lambda v: get_influences(v, self.mesh), range(len(self.mesh.data.vertices))))

# we can't just check if a vertex group exists for a bone, because we cap a vertex's influence count to 4,
# which means there can be a bone that would've been the 5th strongest influence on a vertex,
# and influence no other vertices - which means that bone should NOT be included in the rig's influence list
is_influence = {}
for influence in influences:
for (bone, _) in influence:
Expand Down

0 comments on commit 11216cf

Please sign in to comment.