Commit: 52e344a7704327c512834477426f23921dc65110
Author: Sergey Sharybin
Date:   Wed Mar 20 14:19:30 2019 +0100
Branches: master
https://developer.blender.org/rB52e344a7704327c512834477426f23921dc65110

Fix T62770: Changing Constraint.mute does not update pose

Missing dependency graph tag. Is only happening for scripts, since
the interface is handling this from do_constraint_panels().

Fix is suggested by Edmund Kapusniak (@edmundmk), thanks!

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

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 b50daff4ac8..0b5269cd5d8 100644
--- a/source/blender/makesrna/intern/rna_constraint.c
+++ b/source/blender/makesrna/intern/rna_constraint.c
@@ -2624,18 +2624,21 @@ void RNA_def_constraint(BlenderRNA *brna)
        RNA_def_property_enum_items(prop, owner_space_pchan_items);
        RNA_def_property_enum_funcs(prop, NULL, NULL, 
"rna_Constraint_owner_space_itemf");
        RNA_def_property_ui_text(prop, "Owner Space", "Space that owner is 
evaluated in");
+       RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, 
"rna_Constraint_update");
 
        prop = RNA_def_property(srna, "target_space", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_sdna(prop, NULL, "tarspace");
        RNA_def_property_enum_items(prop, target_space_pchan_items);
        RNA_def_property_enum_funcs(prop, NULL, NULL, 
"rna_Constraint_target_space_itemf");
        RNA_def_property_ui_text(prop, "Target Space", "Space that target is 
evaluated in");
+       RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, 
"rna_Constraint_update");
 
        /* flags */
        prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", CONSTRAINT_OFF);
        RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
        RNA_def_property_ui_text(prop, "Disable", "Enable/Disable Constraint");
+       RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, 
"rna_Constraint_update");
 
        prop = RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", CONSTRAINT_EXPAND);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to