diff options
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r-- | object_collection_manager/ui.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index 00f5c2f7..812310dd 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -335,6 +335,10 @@ class CollectionManager(Operator): self.view_layer = view_layer.name + # make sure list index is valid + if cm.cm_list_index >= len(cm.cm_list_collection): + cm.cm_list_index = -1 + # check if expanded & history/buffer state still correct if collection_state: new_state = generate_state() |