From ef025447c95592b34cba1edb0a4835f93abaced7 Mon Sep 17 00:00:00 2001 From: Owl Date: Tue, 26 Aug 2025 12:36:14 -0400 Subject: some small stuff --- __init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '__init__.py') diff --git a/__init__.py b/__init__.py index 998f396..d20580a 100644 --- a/__init__.py +++ b/__init__.py @@ -3,7 +3,7 @@ # https://web.archive.org/web/20210925181415/https://blenderbrew.com/custom-application-templates-in-blender/ # blenxy module -import importlib, bpy +import importlib, bpy, sys # import the submmodules needed # all submodules have a register/unregister function @@ -48,13 +48,15 @@ def unload_blenxy_stuff(dummy): def register(): # print the welcome - print("\nWelcome to Blenxy!\n") + print("\nWelcome to Blenxy!") + print("Running on Blender: %s\n" % (bpy.app.version.__str__())) + # add this function to load_post first bpy.app.handlers.load_post.append(unload_blenxy_stuff) # add the register functions to load_post (old_blenxy_modules) for mod in blenxy_modules: bpy.app.handlers.load_post.append(mod.register) - + # unregister function that blender will call when a new template is loaded def unregister(): -- cgit v1.2.3-70-g09d2