diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-09-20 11:03:28 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-09-20 11:03:28 +0300 |
commit | 3f92a331936056c17b598d8da2ddd57e8a292154 (patch) | |
tree | 74d305f91eaa4901f20e190d20ba61caaf977f1f /amaranth | |
parent | 36974bed34488753231261e771a60a5afbea7576 (diff) |
Amaranth: Fix addon un-register function
The issue was introduced in cf773d42f07d and vis caused
by a lack of class unregister.
Fixes regression tests, as well as usecase when a user
toggles the addon off and on again.
Diffstat (limited to 'amaranth')
-rw-r--r-- | amaranth/misc/toggle_wire.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/amaranth/misc/toggle_wire.py b/amaranth/misc/toggle_wire.py index b766c30f..bf8614a5 100644 --- a/amaranth/misc/toggle_wire.py +++ b/amaranth/misc/toggle_wire.py @@ -133,3 +133,7 @@ def register(): def unregister(): clear_properties() + + from bpy.utils import unregister_class + for cls in classes: + unregister_class(cls) |