Skip to content

Commit

Permalink
fix: leaking subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Aug 26, 2023
1 parent 9c9e2bf commit 2d528a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions io_scene_vrm/editor/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def setup_subscription(load_post: bool) -> None:
)

bpy.msgbus.publish_rna(key=object_name_subscribe_to)
bpy.msgbus.publish_rna(key=object_mode_subscribe_to)
bpy.msgbus.publish_rna(key=bone_name_subscribe_to)
bpy.msgbus.publish_rna(key=armature_name_subscribe_to)

Expand All @@ -185,4 +186,5 @@ def teardown_subscription() -> None:
setup_once.clear()
bpy.msgbus.clear_by_owner(armature_name_subscription_owner)
bpy.msgbus.clear_by_owner(bone_name_subscription_owner)
bpy.msgbus.clear_by_owner(object_mode_subscription_owner)
bpy.msgbus.clear_by_owner(object_name_subscription_owner)

0 comments on commit 2d528a0

Please sign in to comment.