diff options
author | Marc Gilleron <marc.gilleron@gmail.com> | 2024-04-18 21:33:02 +0100 |
---|---|---|
committer | Marc Gilleron <marc.gilleron@gmail.com> | 2024-04-18 21:33:02 +0100 |
commit | f3e6d234059ec1e2b299fa1ec7a6ec9c5d329dfa (patch) | |
tree | 58ea6106c2de8d11f9ac6ecc098f5f89f07fdf23 | |
parent | 2efbc6bfb3b4f49a6bc75b3d367cfe81eeddbf3a (diff) | |
download | redot-engine-f3e6d234059ec1e2b299fa1ec7a6ec9c5d329dfa.tar.gz |
Fix crash when GraphFrame sb_to_draw_panel is not a StyleBoxFlat
-rw-r--r-- | scene/gui/graph_frame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/graph_frame.cpp b/scene/gui/graph_frame.cpp index 288b8ba66d..ca9f7e6fcf 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); } |