Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-09-24 15:04:10 +0300
committerBastien Montagne <bastien@blender.org>2020-09-24 15:05:42 +0300
commit7ba30d35d15a5f6c88167c559ce3acc12c63e4a4 (patch)
tree06fd275c0f08215fdff2884c950d4c9fe740a1ee /source/blender/editors/space_graph
parent748efc710cfe9835a9b474bb4a1569b42ad94b7f (diff)
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.
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_utils.c3
1 files changed, 2 insertions, 1 deletions
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)) {