Fix T80727: Drivers: deleting all keyframes leaves an uneditable f-curve.

A NULL bezier pointer does not mean that the fcurve is not editable, it
only is if it actually has some baked sample points too.
This commit is contained in:
Bastien Montagne 2020-09-24 14:04:10 +02:00
parent 748efc710c
commit 7ba30d35d1
Notes: blender-bot 2023-02-13 21:11:13 +01:00
Referenced by issue #80727, Drivers: deleting all keyframes leaves an uneditable f-curve
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,8 @@ bool graphop_editable_keyframes_poll(bContext *C)
* - F-Curve modifiers do not interfere with the result too much
* (i.e. the modifier-control drawing check returns false)
*/
if (fcu->bezt == NULL) {
if (fcu->bezt == NULL && fcu->fpt != NULL) {
/* This is a baked curve, it is never editable. */
continue;
}
if (BKE_fcurve_is_keyframable(fcu)) {