[Bf-blender-cvs] [7ba30d35d15] master: Fix T80727: Drivers: deleting all keyframes leaves an uneditable f-curve.
Bastien Montagne
noreply at git.blender.org
Thu Sep 24 14:10:09 CEST 2020
Commit: 7ba30d35d15a5f6c88167c559ce3acc12c63e4a4
Author: Bastien Montagne
Date: Thu Sep 24 14:04:10 2020 +0200
Branches: master
https://developer.blender.org/rB7ba30d35d15a5f6c88167c559ce3acc12c63e4a4
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.
===================================================================
M source/blender/editors/space_graph/graph_utils.c
===================================================================
diff --git a/source/blender/editors/space_graph/graph_utils.c b/source/blender/editors/space_graph/graph_utils.c
index 6d08fd00cab..807b0603ea3 100644
--- a/source/blender/editors/space_graph/graph_utils.c
+++ b/source/blender/editors/space_graph/graph_utils.c
@@ -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)) {
More information about the Bf-blender-cvs
mailing list