Skip to content

Commit

Permalink
fix: incorrect movement in 'move_down_vrm0_secondary_animation_group'
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed May 22, 2024
1 parent 7ed4261 commit 134d0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io_scene_vrm/editor/vrm0/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ def execute(self, _context: Context) -> set[str]:
secondary_animation = armature_data.vrm_addon_extension.vrm0.secondary_animation
if len(secondary_animation.bone_groups) <= self.bone_group_index:
return {"CANCELLED"}
new_index = (self.bone_group_index - 1) % len(secondary_animation.bone_groups)
new_index = (self.bone_group_index + 1) % len(secondary_animation.bone_groups)
secondary_animation.bone_groups.move(self.bone_group_index, new_index)
secondary_animation.active_bone_group_index = new_index
return {"FINISHED"}
Expand Down

0 comments on commit 134d0fb

Please sign in to comment.