[Bf-blender-cvs] [4cc04beb773] master: Fix T85981: Undo on linked rig with overrides loses custom shapes.

Bastien Montagne noreply at git.blender.org
Mon Mar 1 18:25:39 CET 2021


Commit: 4cc04beb77367c94af9d303d38876739e5fe4b9b
Author: Bastien Montagne
Date:   Mon Mar 1 18:24:27 2021 +0100
Branches: master
https://developer.blender.org/rB4cc04beb77367c94af9d303d38876739e5fe4b9b

Fix T85981: Undo on linked rig with overrides loses custom shapes.

While generally speaking bone shapes objects should not be overridden,
it can happens in some cases, and should be properly supported then.

===================================================================

M	source/blender/makesrna/intern/rna_pose.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_pose.c b/source/blender/makesrna/intern/rna_pose.c
index bd45990fe30..90a860e87e2 100644
--- a/source/blender/makesrna/intern/rna_pose.c
+++ b/source/blender/makesrna/intern/rna_pose.c
@@ -1369,7 +1369,7 @@ static void rna_def_pose_channel(BlenderRNA *brna)
   RNA_def_property_pointer_sdna(prop, NULL, "custom");
   RNA_def_property_struct_type(prop, "Object");
   RNA_def_property_flag(prop, PROP_EDITABLE);
-  RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
+  RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
   RNA_def_property_pointer_funcs(prop, NULL, "rna_PoseChannel_bone_custom_set", NULL, NULL);
   RNA_def_property_ui_text(
       prop, "Custom Object", "Object that defines custom draw type for this bone");



More information about the Bf-blender-cvs mailing list