From b0d5f3dc224fa31a9f2e8e70b8ec88f6200e5263 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Sat, 2 Sep 2023 10:38:23 +0200 Subject: [PATCH] Fix #111711: bone collection visibility cannot be overridden Since the switch from bone layers to bone collections in 998136f7a7b520ef10c998c5af744eb0d464fdd3, visibility could not be overridden anymore. Moreso, layer visibility could also be toggled even in linked state in 3.6 [those changes get lost on file reload, but it was still useful and expected behavior]. Both are now restored. Pull Request: https://projects.blender.org/blender/blender/pulls/111775 --- source/blender/makesrna/intern/rna_armature.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/makesrna/intern/rna_armature.cc b/source/blender/makesrna/intern/rna_armature.cc index e78d04325bd..b98938f7eb0 100644 --- a/source/blender/makesrna/intern/rna_armature.cc +++ b/source/blender/makesrna/intern/rna_armature.cc @@ -1964,6 +1964,8 @@ static void rna_def_bonecollection(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, nullptr, "flags", BONE_COLLECTION_VISIBLE); RNA_def_property_ui_text( prop, "Visible", "Bones in this collection will be visible in pose/object mode"); + RNA_def_property_flag(prop, PROP_LIB_EXCEPTION); + RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); RNA_def_property_update(prop, NC_OBJECT | ND_POSE, nullptr); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);