Update "Overriding Context" API example

This commit is contained in:
Dalai Felinto 2019-05-24 19:21:30 -03:00
parent 7d44184c85
commit caf52e3779
Notes: blender-bot 2023-02-14 02:26:45 +01:00
Referenced by issue #65161, 2.8 World "Background," node missing manual color adjustment
Referenced by issue #65140, Blender 2.8 Crashing After Some Work
Referenced by issue #65097, Crash when selecting geometry with mesa 19.0.5
1 changed files with 1 additions and 1 deletions

View File

@ -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)