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:
authorAlexander Gavrilov <angavrilov@gmail.com>2022-07-11 20:32:12 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2022-07-11 20:32:12 +0300
commitd2325587d73bc825986af3a1baba51cb4a9ce355 (patch)
treee6fbdffa8e24c17648ab19e84a736b6428db78e4 /rigify/utils/collections.py
parent6af061bc26e95caf534ee60d6848967d14b97d7b (diff)
Rigify: fix T99352 - generation issues when same named rig is linked.
Only consider local datablocks when searching for the rig object, widget collection and widget objects themselves during generation.
Diffstat (limited to 'rigify/utils/collections.py')
-rw-r--r--rigify/utils/collections.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rigify/utils/collections.py b/rigify/utils/collections.py
index 8a299a9b..9eeaac51 100644
--- a/rigify/utils/collections.py
+++ b/rigify/utils/collections.py
@@ -53,7 +53,7 @@ def ensure_collection(context, collection_name, hidden=False) -> bpy.types.Colle
active_collection = active_layer_coll.collection
collection = bpy.data.collections.get(collection_name)
- if not collection:
+ if not collection or collection.library:
# Create the collection
collection = bpy.data.collections.new(collection_name)
collection.hide_viewport = hidden