Skip to content

Commit

Permalink
fix auto-reload across file loads
Browse files Browse the repository at this point in the history
  • Loading branch information
ihm-tswow committed Aug 30, 2022
1 parent d6a4bc6 commit d89632f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/core_cy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,14 @@ def auto_reload():

def register():
register_cxx()
bpy.app.timers.register(auto_reload, first_interval=auto_reload_delay())
bpy.app.timers.register(auto_reload, first_interval=auto_reload_delay(), persistent=True)

def unregister():
unregister_cxx();

# called from test_runner.py, because blender does not accept cython methods
def cy_run_tests(incl,excl):
ret = run_tests(incl,excl)
bpy.app.timers.register(auto_reload, first_interval=auto_reload_delay())
return ret

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down

0 comments on commit d89632f

Please sign in to comment.