From d9d433e8e7dadd29a9675b856218636594bb8f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 21 Mar 2024 16:25:11 +0100 Subject: [PATCH] Fix #119751: Rigify + Bone Selection Sets fails to generate rig When generating a selection set, the Rigify code used the wrong approach to test `coll not in b.bone.collections` -- it should have been using the collection name, not the collection itself. --- rigify/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigify/generate.py b/rigify/generate.py index 1899c95a2..20efb43de 100644 --- a/rigify/generate.py +++ b/rigify/generate.py @@ -696,7 +696,7 @@ def create_selection_set_for_rig_layer(rig: ArmatureObject, set_name: str, coll: sel_set.name = set_name for b in rig.pose.bones: - if coll not in b.bone.collections or b.name in sel_set.bone_ids: + if coll.name not in b.bone.collections or b.name in sel_set.bone_ids: continue bone_id = sel_set.bone_ids.add() -- 2.30.2