diff --git a/__init__.py b/__init__.py index 23999b6..e507598 100644 --- a/__init__.py +++ b/__init__.py @@ -33,9 +33,10 @@ functions = [ import bpy if "bpy" in locals(): - for name in modules + functions: - module = importlib.import_module(name, __name__) - importlib.reload(module) + if not bpy.app.background: + for name in modules + functions: + module = importlib.import_module(name, __name__) + importlib.reload(module) def register(): if bpy.app.background: