Skip to content

Commit

Permalink
Merge pull request godotengine#90874 from Zylann/fix_graph_frame_crash
Browse files Browse the repository at this point in the history
Fix crash when GraphFrame `sb_to_draw_panel` is not a StyleBoxFlat
  • Loading branch information
akien-mga committed Apr 19, 2024
2 parents 00c847a + f3e6d23 commit 626c6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/graph_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 626c6a0

Please sign in to comment.