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:
authorRyan Inch <mythologylover75@gmail.com>2020-11-16 04:37:33 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-11-16 05:05:39 +0300
commit51ea73b0c948315b544e962ab97825f6aa0d62ed (patch)
treea7d65e5aeff38b94be39bb7009841f855be9c685 /object_collection_manager/operator_utils.py
parent35c23b4db494e58538a677c4fb0ec9ec1e8ffaa8 (diff)
Collection Manager: Fix object selection error. Task: T69577
Fix the select collection objects function executing in editing modes and erroring out. Remove object selection references from tooltips when in editing modes.
Diffstat (limited to 'object_collection_manager/operator_utils.py')
-rw-r--r--object_collection_manager/operator_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/object_collection_manager/operator_utils.py b/object_collection_manager/operator_utils.py
index 393086f7..8b637a57 100644
--- a/object_collection_manager/operator_utils.py
+++ b/object_collection_manager/operator_utils.py
@@ -490,6 +490,9 @@ def remove_collection(laycol, collection, context):
def select_collection_objects(is_master_collection, collection_name, replace, nested, selection_state=None):
+ if bpy.context.mode != 'OBJECT':
+ return
+
if is_master_collection:
target_collection = bpy.context.view_layer.layer_collection.collection