summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-26 12:36:14 -0400
committerOwl <isaclien9752@gmail.com>2025-08-26 12:36:14 -0400
commitef025447c95592b34cba1edb0a4835f93abaced7 (patch)
treedd1f01f66c01328bf0215dfc20b1ca7e263f8c34 /__init__.py
parent2f71ead735326d2f79ebeec1a739943da6e95b41 (diff)
downloadblenxy-ef025447c95592b34cba1edb0a4835f93abaced7.tar.gz
blenxy-ef025447c95592b34cba1edb0a4835f93abaced7.zip
some small stuff
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():