diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2020-08-11 07:51:28 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2020-08-11 07:51:28 +0300 |
commit | 14bbd42ff2abb7c480b373a88817095bf8c2ad4c (patch) | |
tree | 052ba3548a742c0aba7b14200f94b84e4766aa2b /object_collection_manager/ui.py | |
parent | 559fbf908ba8721f4c9e72b6dc7c3bfa0863479f (diff) |
Collection Manager: Refactor. Task: T69577
Change detection of the master collection from an ambiguous index
to an is_master_collection boolean.
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r-- | object_collection_manager/ui.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index 0f2703cb..4c1eb077 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -159,7 +159,7 @@ class CollectionManager(Operator): prop = c_icon.operator("view3d.set_active_collection", text='', icon='GROUP', depress=highlight) - prop.collection_index = -1 + prop.is_master_collection = True prop.collection_name = 'Master Collection' master_collection_row.separator() @@ -200,7 +200,7 @@ class CollectionManager(Operator): prop = row_setcol.operator("view3d.set_collection", text="", icon=icon, emboss=False) - prop.collection_index = 0 + prop.is_master_collection = True prop.collection_name = 'Master Collection' copy_icon = 'COPYDOWN' @@ -559,7 +559,7 @@ class CM_UL_items(UIList): prop = c_icon.operator("view3d.set_active_collection", text='', icon='GROUP', emboss=highlight, depress=highlight) - prop.collection_index = laycol["row_index"] + prop.is_master_collection = False prop.collection_name = item.name if prefs.enable_qcd: @@ -599,7 +599,7 @@ class CM_UL_items(UIList): prop = set_obj_col.operator("view3d.set_collection", text="", icon=icon, emboss=False) - prop.collection_index = laycol["id"] + prop.is_master_collection = False prop.collection_name = item.name |