Skip to content

Commit 626c6a0

Browse files
committed
Merge pull request godotengine#90874 from Zylann/fix_graph_frame_crash
Fix crash when GraphFrame `sb_to_draw_panel` is not a StyleBoxFlat
2 parents 00c847a + f3e6d23 commit 626c6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/graph_frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void GraphFrame::_notification(int p_what) {
118118
sb_panel_flat->set_border_color(selected ? original_border_color : tint_color.lightened(0.3));
119119
draw_style_box(sb_panel_flat, body_rect);
120120
} else if (sb_panel_texture.is_valid()) {
121-
sb_panel_texture = sb_panel_flat->duplicate();
121+
sb_panel_texture = sb_panel_texture->duplicate();
122122
sb_panel_texture->set_modulate(tint_color);
123123
draw_style_box(sb_panel_texture, body_rect);
124124
}

0 commit comments

Comments
 (0)