Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/examples/bpy.app.timers.5.py
| Context not available. | |||||
| execution_queue = queue.Queue() | execution_queue = queue.Queue() | ||||
| # This function can savely be called in another thread. | # This function can safely be called in another thread. | ||||
| # The function will be executed when the timer runs the next time. | # The function will be executed when the timer runs the next time. | ||||
| def run_in_main_thread(function): | def run_in_main_thread(function): | ||||
| execution_queue.put(function) | execution_queue.put(function) | ||||
| Context not available. | |||||