From e69cdc951d00e6d730b047027f8a4accd0bba1c9 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sat, 18 Jan 2025 18:19:52 +0100 Subject: [PATCH] cosmetics --- __init__.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index 3fe519a..72193c4 100644 --- a/__init__.py +++ b/__init__.py @@ -242,9 +242,6 @@ class ABC3D_text_properties(bpy.types.PropertyGroup): distribution_type: bpy.props.StringProperty() glyphs: bpy.props.CollectionProperty(type=ABC3D_glyph_properties) -# TODO: simply, merge, cut cut cut - - class ABC3D_data(bpy.types.PropertyGroup): available_fonts: bpy.props.CollectionProperty( type=ABC3D_available_font, name="Available fonts") @@ -1563,8 +1560,8 @@ def on_depsgraph_update(scene, depsgraph): butils.run_in_main_thread(later) - def register(): + print(f"REGISTER {utils.prefix()}") addon_updater_ops.register(bl_info) for cls in classes: @@ -1572,9 +1569,8 @@ def register(): bpy.utils.register_class(cls) bpy.types.Scene.abc3d_data = bpy.props.PointerProperty(type=ABC3D_data) # bpy.types.Object.__del__ = lambda self: print(f"Bye {self.name}") - print(f"REGISTER {bl_info['name']}") - # auto start if we load a blend file + # autostart if we load a blend file if load_handler not in bpy.app.handlers.load_post: bpy.app.handlers.load_post.append(load_handler) # and autostart if we reload script @@ -1615,7 +1611,7 @@ def unregister(): bpy.app.handlers.depsgraph_update_post.remove(on_depsgraph_update) del bpy.types.Scene.abc3d_data - print(f"UNREGISTER {bl_info['name']}") + print(f"UNREGISTER {utils.prefix()}") if __name__ == '__main__':