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.
This commit is contained in:
@@ -37,7 +37,7 @@ class UnitTesting(ViewLayerTesting):
|
||||
layer_collection_kid = layer.collections.link(scene_collection_kid)
|
||||
|
||||
layer_collection_mom.enabled = True
|
||||
cube.select_set('SELECT')
|
||||
cube.select_set(True)
|
||||
layer_collection_mom.collections[layer_collection_kid.name].selectable = False
|
||||
layer_collection_kid.enabled = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user