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.msgbus.1.py')
-rw-r--r--doc/python_api/examples/bpy.msgbus.1.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.msgbus.1.py b/doc/python_api/examples/bpy.msgbus.1.py
index 21198471ffa..8164272d521 100644
--- a/doc/python_api/examples/bpy.msgbus.1.py
+++ b/doc/python_api/examples/bpy.msgbus.1.py
@@ -31,11 +31,13 @@ owner = object()
subscribe_to = bpy.context.object.location
+
def msgbus_callback(*args):
# This will print:
# Something changed! (1, 2, 3)
print("Something changed!", args)
+
bpy.msgbus.subscribe_rna(
key=subscribe_to,
owner=owner,