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!
This commit is contained in:
parent
f39a4a4a4e
commit
52e344a770
Notes:
blender-bot
2023-02-14 11:25:11 +01:00
Referenced by issue #62770, Setting bpy.types.Constraint.mute from script does not correctly update pose
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue