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:
2020-09-24 14:04:10 +02:00
parent 748efc710c
commit 7ba30d35d1

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)) {