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.
This commit is contained in:
parent
ddc9d5d0a0
commit
3570274fe7
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue