Fix #128805: Missing Depsgraph Update when removing FCurve modifiers

The problem was that when removing FCurve modifiers via the python API
the Depsgraph wasn't notified.
Fixed by tagging the owner ID of the fcurve modifier for an update.

Pull Request: https://projects.blender.org/blender/blender/pulls/128984
This commit is contained in:
Christoph Lendenfeld
2024-10-16 09:29:45 +02:00
committed by Christoph Lendenfeld
parent 41a3e6c3bd
commit 0211a68fb4

View File

@@ -773,6 +773,7 @@ static void rna_FCurve_modifiers_remove(FCurve *fcu, ReportList *reports, Pointe
}
remove_fmodifier(&fcu->modifiers, fcm);
DEG_id_tag_update(fcm_ptr->owner_id, ID_RECALC_ANIMATION);
RNA_POINTER_INVALIDATE(fcm_ptr);
}