Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'object_collection_manager/operators.py')
-rw-r--r--object_collection_manager/operators.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/object_collection_manager/operators.py b/object_collection_manager/operators.py
index 4d028cf2..9958f96f 100644
--- a/object_collection_manager/operators.py
+++ b/object_collection_manager/operators.py
@@ -105,6 +105,7 @@ class ExpandAllOperator(Operator):
if len(expanded) > 0:
expanded.clear()
+ context.scene.collection_manager.cm_list_index = 0
else:
for laycol in layer_collections.values():
if laycol["ptr"].children:
@@ -204,6 +205,9 @@ class ExpandSublevelOperator(Operator):
expand_history["target"] = ""
expand_history["history"].clear()
+ # set the selected row to the collection you're expanding/collapsing to
+ # preserve the tree view's scrolling
+ context.scene.collection_manager.cm_list_index = self.index
#update tree view
update_property_group(context)