From d2325587d73bc825986af3a1baba51cb4a9ce355 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Mon, 11 Jul 2022 20:32:12 +0300 Subject: 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. --- rigify/utils/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rigify/utils/collections.py') 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 -- cgit v1.2.3