Skip to content

Commit

Permalink
bugfix on handler
Browse files Browse the repository at this point in the history
  • Loading branch information
wikid24 committed Dec 1, 2023
1 parent 10f96ce commit ad53207
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ffxiv_mmd_tools_helper/bone_retargeting_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def execute(self, context):
stored_handler = None
for handler in bpy.app.handlers.depsgraph_update_post:
if '<function handle_edit_change' in str(handler):
stored_handler = handler.copy
stored_handler = handler
break

# Remove the stored function from the handler list
Expand Down Expand Up @@ -468,7 +468,7 @@ def set_mapping_pose_bone_by_index(context,armature_type):

@register_wrap
class ART_SetBoneInMapping(bpy.types.Operator):

bl_idname = "ffxiv_mmd.art_set_bone_in_mapping"
bl_label = "Search for bone"
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -534,7 +534,6 @@ def select_pose_bones_by_index(context,armature_type):
if stored_handler:
bpy.app.handlers.depsgraph_update_post.remove(stored_handler)

print('here3')
bpy.ops.object.mode_set(mode='OBJECT')

source_arm.select_set(True)
Expand Down

0 comments on commit ad53207

Please sign in to comment.