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-08-11 07:51:28 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-08-11 07:51:28 +0300
commit14bbd42ff2abb7c480b373a88817095bf8c2ad4c (patch)
tree052ba3548a742c0aba7b14200f94b84e4766aa2b /object_collection_manager/operator_utils.py
parent559fbf908ba8721f4c9e72b6dc7c3bfa0863479f (diff)
Collection Manager: Refactor. Task: T69577
Change detection of the master collection from an ambiguous index to an is_master_collection boolean.
Diffstat (limited to 'object_collection_manager/operator_utils.py')
-rw-r--r--object_collection_manager/operator_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/object_collection_manager/operator_utils.py b/object_collection_manager/operator_utils.py
index 6f7ee83b..20c7dee7 100644
--- a/object_collection_manager/operator_utils.py
+++ b/object_collection_manager/operator_utils.py
@@ -469,8 +469,8 @@ def remove_collection(laycol, collection, context):
cm.cm_list_index = laycol["row_index"]
-def select_collection_objects(collection_index, collection_name, replace, nested):
- if collection_index == 0:
+def select_collection_objects(is_master_collection, collection_name, replace, nested):
+ if is_master_collection:
target_collection = bpy.context.view_layer.layer_collection.collection
else: