[Bf-blender-cvs] [caf52e3779a] master: Update "Overriding Context" API example
Dalai Felinto
noreply at git.blender.org
Sat May 25 00:22:19 CEST 2019
Commit: caf52e3779a9e5e13055f7da963a2197481d43a4
Author: Dalai Felinto
Date: Fri May 24 19:21:30 2019 -0300
Branches: master
https://developer.blender.org/rBcaf52e3779a9e5e13055f7da963a2197481d43a4
Update "Overriding Context" API example
===================================================================
M doc/python_api/examples/bpy.ops.1.py
===================================================================
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)
More information about the Bf-blender-cvs
mailing list