diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index 5c3edb7a1bb20385c54932a8fc66c0f792f41935..dcb4daf01cc8f3dcc96db659587c16bb889c0bd5 100644 --- a/object_collection_manager/__init__.py +++ b/object_collection_manager/__init__.py @@ -22,7 +22,7 @@ bl_info = { "name": "Collection Manager", "description": "Manage collections and their objects", "author": "Ryan Inch", - "version": (2, 7, 21), + "version": (2, 7, 22), "blender": (2, 80, 0), "location": "View3D - Object Mode (Shortcut - M)", "warning": '', # used for warning icon and text in addons panel diff --git a/object_collection_manager/operators.py b/object_collection_manager/operators.py index ce39867ebaf3d5e409e1f4cec90b137a7175d476..4d028cf24d4871e1cd30832cf8322d544993f075 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'}