UI: Fix panel drag icon added to redo panel

Error in cleanup commit 0d93bd8d63. Currently floating panels
cannot be dragged, so the widget should not be displayed.
This commit is contained in:
Hans Goudey 2020-11-19 20:43:10 -05:00
parent 5b34d11b55
commit a1120892b0
1 changed files with 1 additions and 1 deletions

View File

@ -1137,7 +1137,7 @@ static void panel_draw_aligned_widgets(const uiStyle *style,
}
/* Draw drag widget. */
if (!is_subpanel) {
if (!is_subpanel && show_background) {
const int drag_widget_size = header_height * 0.7f;
GPU_matrix_push();
/* The magic numbers here center the widget vertically and offset it to the left.