From 6a14b9651a6379c642b525570477b51c7b311c52 Mon Sep 17 00:00:00 2001 From: Yusarina Date: Wed, 19 Jun 2024 02:52:12 +0100 Subject: [PATCH] Added back comments which vanished. --- __init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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))