Fix T38774: Added missing notifier flags for updating F-Curve after changing extrapolation from RNA

This commit is contained in:
Joshua Leung 2014-02-24 14:15:28 +13:00
parent 5e18eea02c
commit 6e7ce9770f
Notes: blender-bot 2023-02-14 20:10:51 +01:00
Referenced by issue blender/blender-addons#38774, Changing extrapolation type via RNA doesn't refresh F-Curve
1 changed files with 1 additions and 2 deletions

View File

@ -1768,8 +1768,7 @@ static void rna_def_fcurve(BlenderRNA *brna)
RNA_def_property_enum_sdna(prop, NULL, "extend");
RNA_def_property_enum_items(prop, prop_mode_extend_items);
RNA_def_property_ui_text(prop, "Extrapolation", "");
/* XXX need an update callback for this so that animation gets evaluated */
RNA_def_property_update(prop, NC_ANIMATION, NULL);
RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL);
/* Pointers */
prop = RNA_def_property(srna, "driver", PROP_POINTER, PROP_NONE);