From 9b3ce950e676867c19b329e38ee7da874b6be699 Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Fri, 17 Feb 2023 11:05:57 +0100 Subject: [PATCH] Fix #95400: Crash when running Euler Filter on baked Curves Fix a crash when using the Euler Filter from the Graph Editor on baked curves. The crash happened because baked curves have no bezt array. Skipping any curves where that was missing fixes the issue. Co-authored-by: Christoph Lendenfeld Pull Request #104858 --- source/blender/editors/space_graph/graph_edit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index 34c34613cf6..b1f4673f7eb 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -1880,6 +1880,11 @@ static bool euler_filter_single_channel(FCurve *fcu) return false; } + /* Skip baked FCurves. */ + if (fcu->bezt == NULL) { + return false; + } + /* `prev` follows bezt, bezt = "current" point to be fixed. */ /* Our method depends on determining a "difference" from the previous vert. */ bool is_modified = false;