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
path: root/doc
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2019-05-25 01:21:30 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-05-25 01:21:30 +0300
commitcaf52e3779a9e5e13055f7da963a2197481d43a4 (patch)
tree8b5bf8503e3ddb82e1e70f33eb3f4c2db4e92540 /doc
parent7d44184c85cc3ca1e96cd3a9ed84bc4834246f5a (diff)
Update "Overriding Context" API example
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.ops.1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/examples/bpy.ops.1.py b/doc/python_api/examples/bpy.ops.1.py
index 7fdde453abe..efc9f00b0ae 100644
--- a/doc/python_api/examples/bpy.ops.1.py
+++ b/doc/python_api/examples/bpy.ops.1.py
@@ -20,5 +20,5 @@ you would pass ``{'active_object': object}``.
# remove all objects in scene rather than the selected ones
import bpy
override = bpy.context.copy()
-override['selected_bases'] = list(bpy.context.scene.object_bases)
+override['selected_objects'] = list(bpy.context.scene.objects)
bpy.ops.object.delete(override)