diff options
Diffstat (limited to 'object_collection_manager/operators.py')
-rw-r--r-- | object_collection_manager/operators.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/object_collection_manager/operators.py b/object_collection_manager/operators.py index ce39867e..4d028cf2 100644 --- a/object_collection_manager/operators.py +++ b/object_collection_manager/operators.py @@ -412,6 +412,7 @@ class CMUnExcludeAllOperator(Operator): def invoke(self, context, event): global rto_history + orig_active_collection = context.view_layer.active_layer_collection view_layer = context.view_layer.name modifiers = get_modifiers(event) @@ -436,6 +437,9 @@ class CMUnExcludeAllOperator(Operator): else: activate_all_rtos(view_layer, "exclude") + # reset active collection + context.view_layer.active_layer_collection = orig_active_collection + return {'FINISHED'} |