[Bf-blender-cvs] [74db523a52e] blender-v2.81-release: Fix T70739: Make Library Override doesn't re-target Armature constraints.

Bastien Montagne noreply at git.blender.org
Thu Oct 17 10:23:02 CEST 2019


Commit: 74db523a52e4e57a52887274d1e55617b2faa87c
Author: Bastien Montagne
Date:   Thu Oct 17 10:21:52 2019 +0200
Branches: blender-v2.81-release
https://developer.blender.org/rB74db523a52e4e57a52887274d1e55617b2faa87c

Fix T70739: Make Library Override doesn't re-target Armature constraints.

Missing one step (collection prop itself) in RNA hierarchy of properties
leading to those armature object pointers...

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

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

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

diff --git a/source/blender/makesrna/intern/rna_constraint.c b/source/blender/makesrna/intern/rna_constraint.c
index 7732bf531d8..c0211799192 100644
--- a/source/blender/makesrna/intern/rna_constraint.c
+++ b/source/blender/makesrna/intern/rna_constraint.c
@@ -1045,6 +1045,7 @@ static void rna_def_constraint_armature_deform(BlenderRNA *brna)
   RNA_def_property_collection_sdna(prop, NULL, "targets", NULL);
   RNA_def_property_struct_type(prop, "ConstraintTargetBone");
   RNA_def_property_ui_text(prop, "Targets", "Target Bones");
+  RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
   rna_def_constraint_armature_deform_targets(brna, prop);
 
   prop = RNA_def_property(srna, "use_deform_preserve_volume", PROP_BOOLEAN, PROP_NONE);



More information about the Bf-blender-cvs mailing list