mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Tests: Make UI tests support loading blend files
The timer needs to be persistent then. Pull Request: https://projects.blender.org/blender/blender/pulls/153631
This commit is contained in:
parent
1b700d2361
commit
cdc6751be2
1 changed files with 2 additions and 1 deletions
|
|
@ -354,7 +354,8 @@ def run(
|
|||
event_step.run_events = iter(event_iter)
|
||||
event_step._ticks = 0
|
||||
|
||||
bpy.app.timers.register(event_step, first_interval=0.0)
|
||||
# Persistent so this keeps working when tests load a blend file.
|
||||
bpy.app.timers.register(event_step, first_interval=0.0, persistent=True)
|
||||
|
||||
|
||||
def setup_default_preferences(preferences):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue