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:
authorCampbell Barton <ideasman42@gmail.com>2018-11-08 00:51:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-08 00:54:55 +0300
commitf12d2adc870e4bc032f49b9edae85c3b0366b406 (patch)
tree26b1b336bcbdbe37559df3a94febfe3aaa1e4a8e /doc
parentc121bc62193ab22b37cf3d8cf7bd1d21205f1f3c (diff)
RNA: Object.select_set use boolean, only select
- Was setting active state, making it necessary to backup/restore active object in cases where this isn't needed. Existing scripts are explicitly setting the active object when needed. - Use a boolean select arg (toggle selection wasn't used anywhere). - Add an optional view layer argument since scripts should be able to operate outside the user context.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.types.Object.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/examples/bpy.types.Object.py b/doc/python_api/examples/bpy.types.Object.py
index 46f42c828d7..743322492b4 100644
--- a/doc/python_api/examples/bpy.types.Object.py
+++ b/doc/python_api/examples/bpy.types.Object.py
@@ -25,5 +25,5 @@ view_layer.active_layer_collection.collection.objects.link(light_object)
light_object.location = (5.0, 5.0, 5.0)
# And finally select it and make it active.
-light_object.select_set('SELECT')
+light_object.select_set(True)
view_layer.objects.active = light_object