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.types.Depsgraph.2.py')
-rw-r--r--doc/python_api/examples/bpy.types.Depsgraph.2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/python_api/examples/bpy.types.Depsgraph.2.py b/doc/python_api/examples/bpy.types.Depsgraph.2.py
index 8639ffc0267..cad149873a3 100644
--- a/doc/python_api/examples/bpy.types.Depsgraph.2.py
+++ b/doc/python_api/examples/bpy.types.Depsgraph.2.py
@@ -18,16 +18,16 @@ class OBJECT_OT_original_example(bpy.types.Operator):
# to request the original object from the known evaluated one.
#
# NOTE: All ID types have an `original` field.
- object = object_eval.original
- return object.select_get()
+ obj = object_eval.original
+ return obj.select_get()
def execute(self, context):
# NOTE: It seems redundant to iterate over original objects to request evaluated ones
# just to get original back. But we want to keep example as short as possible, but in real
# world there are cases when evaluated object is coming from a more meaningful source.
depsgraph = context.evaluated_depsgraph_get()
- for object in context.editable_objects:
- object_eval = object.evaluated_get(depsgraph)
+ for obj in context.editable_objects:
+ object_eval = obj.evaluated_get(depsgraph)
if self.check_object_selected(object_eval):
self.report({'INFO'}, f"Object is selected: {object_eval.name}")
return {'FINISHED'}