forked from LeenkxTeam/LNXSDK
Update leenkx.py
This commit is contained in:
parent
df33848bee
commit
fcc114aed3
@ -914,7 +914,10 @@ def restart_leenkx(context):
|
|||||||
|
|
||||||
@persistent
|
@persistent
|
||||||
def on_load_post(context):
|
def on_load_post(context):
|
||||||
restart_leenkx(bpy.context) # context is None, use bpy.context instead
|
if bpy.context is not None:
|
||||||
|
restart_leenkx(bpy.context) # context is None, use bpy.context instead
|
||||||
|
else:
|
||||||
|
bpy.app.timers.register(lambda: restart_leenkx(bpy.context), first_interval=0.1)
|
||||||
|
|
||||||
|
|
||||||
def on_register_post():
|
def on_register_post():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user