Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/python_api/examples/bpy.app.timers.2.py')
-rw-r--r--doc/python_api/examples/bpy.app.timers.2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.app.timers.2.py b/doc/python_api/examples/bpy.app.timers.2.py
index c663959c209..e17d43cccd8 100644
--- a/doc/python_api/examples/bpy.app.timers.2.py
+++ b/doc/python_api/examples/bpy.app.timers.2.py
@@ -4,8 +4,10 @@ Run a Function every x Seconds
"""
import bpy
+
def every_2_seconds():
print("Hello World")
return 2.0
+
bpy.app.timers.register(every_2_seconds)