disable module reload in background mode
parent
0b55bf671d
commit
fd0dec4162
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue