diff --git a/__init__.py b/__init__.py index a25163f..caa78a7 100644 --- a/__init__.py +++ b/__init__.py @@ -15,8 +15,13 @@ else: def register(): print("Registering Avatar Toolkit") + # Register the addon properties properties.register() + # Order the classes before registration core.register.order_classes() + # Register the UI classes + + # Iterate over the classes to register and register them core.register.register_properties() for cls in core.register.__bl_ordered_classes: print("registering " + str(cls)) @@ -24,6 +29,9 @@ def register(): def unregister(): print("Unregistering Avatar Toolkit") + # Unregister the UI classes + + # Iterate over the classes to unregister in reverse order and unregister them for cls in reversed(core.register.__bl_ordered_classes): bpy.utils.unregister_class(cls) print("unregistering " + str(cls))