mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Update "Overriding Context" API example
This commit is contained in:
parent
7d44184c85
commit
caf52e3779
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue