summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py8
1 files changed, 5 insertions, 3 deletions
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():