From d89632fe596901c7443c2f2bebfdab29834a4032 Mon Sep 17 00:00:00 2001 From: ihm-tswow Date: Tue, 30 Aug 2022 18:51:06 +0200 Subject: [PATCH] fix auto-reload across file loads --- core/core_cy.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/core_cy.pyx b/core/core_cy.pyx index f372c53..cc20541 100644 --- a/core/core_cy.pyx +++ b/core/core_cy.pyx @@ -220,7 +220,7 @@ 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(); @@ -228,7 +228,6 @@ def unregister(): # 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 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #