diff options
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r-- | object_collection_manager/ui.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index dcd804fa..88e9d0cc 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -37,6 +37,7 @@ from .internals import ( from .operators import ( rto_history, + expand_history, phantom_history, ) @@ -277,8 +278,10 @@ class CM_UL_items(UIList): # add expander if collection has children to make UIList act like tree view if laycol["has_children"]: if laycol["expanded"]: - prop = row.operator("view3d.expand_sublevel", text="", - icon='DISCLOSURE_TRI_DOWN', emboss=False) + highlight = True if expand_history["target"] == item.name else False + + prop = row.operator("view3d.expand_sublevel", text="", icon='DISCLOSURE_TRI_DOWN', + emboss=highlight, depress=highlight) prop.expand = False prop.name = item.name prop.index = index |