From f3e6d234059ec1e2b299fa1ec7a6ec9c5d329dfa Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Thu, 18 Apr 2024 21:33:02 +0100 Subject: [PATCH] Fix crash when GraphFrame sb_to_draw_panel is not a StyleBoxFlat --- scene/gui/graph_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/graph_frame.cpp b/scene/gui/graph_frame.cpp index 288b8ba66df..ca9f7e6fcf1 100644 --- a/scene/gui/graph_frame.cpp +++ b/scene/gui/graph_frame.cpp @@ -118,7 +118,7 @@ void GraphFrame::_notification(int p_what) { sb_panel_flat->set_border_color(selected ? original_border_color : tint_color.lightened(0.3)); draw_style_box(sb_panel_flat, body_rect); } else if (sb_panel_texture.is_valid()) { - sb_panel_texture = sb_panel_flat->duplicate(); + sb_panel_texture = sb_panel_texture->duplicate(); sb_panel_texture->set_modulate(tint_color); draw_style_box(sb_panel_texture, body_rect); }