diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-06 05:05:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-06 05:05:27 +0300 |
commit | 432bfbf7a3b74943b1c251c12bd76616da23991f (patch) | |
tree | 4fff10c2aaca9d48ac4ccc1b368124ce102a53a1 /doc/python_api/examples/bpy.app.timers.5.py | |
parent | 36584bbc2d347cc1df9fd77b59ff1a3d3d7fef53 (diff) |
Cleanup: pep8
Diffstat (limited to 'doc/python_api/examples/bpy.app.timers.5.py')
-rw-r--r-- | doc/python_api/examples/bpy.app.timers.5.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.app.timers.5.py b/doc/python_api/examples/bpy.app.timers.5.py index 821a047d7c7..dda5ea12e73 100644 --- a/doc/python_api/examples/bpy.app.timers.5.py +++ b/doc/python_api/examples/bpy.app.timers.5.py @@ -16,10 +16,12 @@ execution_queue = queue.Queue() def run_in_main_thread(function): execution_queue.put(function) + def execute_queued_functions(): while not execution_queue.empty(): function = execution_queue.get() function() return 1.0 + bpy.app.timers.register(execute_queued_functions) |