From 3570274fe75f626de116c0de52d3b008dd0b9644 Mon Sep 17 00:00:00 2001 From: Ryan Inch Date: Tue, 30 Aug 2022 08:41:19 -0400 Subject: Collection Manager: Fix "Add/Remove nested from selection". Task: T69577 "Add/Remove nested from selection" was inverting the selection for the branch instead of adding or removing. This fixes it to behave similarly to toggling nested RTOs. --- object_collection_manager/operator_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'object_collection_manager/operator_utils.py') diff --git a/object_collection_manager/operator_utils.py b/object_collection_manager/operator_utils.py index 51b4385d..4394cf3a 100644 --- a/object_collection_manager/operator_utils.py +++ b/object_collection_manager/operator_utils.py @@ -604,10 +604,10 @@ def select_collection_objects(is_master_collection, collection_name, replace, ne if replace: bpy.ops.object.select_all(action='DESELECT') - def select_objects(collection, selection_state): - if selection_state == None: - selection_state = get_move_selection().isdisjoint(collection.objects) + if selection_state == None: + selection_state = get_move_selection().isdisjoint(target_collection.objects) + def select_objects(collection, selection_state): for obj in collection.objects: try: obj.select_set(selection_state) -- cgit v1.2.3