Amaranth: Fix addon un-register function

The issue was introduced in cf773d42f0 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.
This commit is contained in:
Sergey Sharybin 2022-09-20 10:03:28 +02:00
parent 36974bed34
commit 3f92a33193
1 changed files with 4 additions and 0 deletions

View File

@ -133,3 +133,7 @@ def register():
def unregister():
clear_properties()
from bpy.utils import unregister_class
for cls in classes:
unregister_class(cls)