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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user