Added back comments which vanished.

This commit is contained in:
Yusarina
2024-06-19 02:52:12 +01:00
parent 01f8363e07
commit 6a14b9651a
+8
View File
@@ -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))