diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2022-08-30 15:41:19 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2022-08-30 15:41:19 +0300 |
commit | 3570274fe75f626de116c0de52d3b008dd0b9644 (patch) | |
tree | dc16be5b3170fd67d02fecdfd53f7bd5088c4a7c | |
parent | ddc9d5d0a0c64c56e5da6a0f5e99e2ca20b46649 (diff) |
Collection Manager: Fix "Add/Remove nested from selection". Task: T69577v3.3.0
"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.
-rw-r--r-- | object_collection_manager/__init__.py | 2 | ||||
-rw-r--r-- | object_collection_manager/operator_utils.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index fd2bd44b..7467fcbd 100644 --- a/object_collection_manager/__init__.py +++ b/object_collection_manager/__init__.py @@ -6,7 +6,7 @@ bl_info = { "name": "Collection Manager", "description": "Manage collections and their objects", "author": "Ryan Inch", - "version": (2, 24, 3), + "version": (2, 24, 4), "blender": (2, 80, 0), "location": "View3D - Object Mode (Shortcut - M)", "warning": '', # used for warning icon and text in addons panel 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) |