Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-11-20 04:43:10 +0300
committerHans Goudey <h.goudey@me.com>2020-11-20 04:43:10 +0300
commita1120892b0efb0d31c0aed1ff8f53a3eb86f36d7 (patch)
treeceeae70fe40819f14843f168bab5f45f6e7212c0 /source/blender/editors/interface/interface_panel.c
parent5b34d11b55e06efa17cd5e717380e78d5e0e8d8b (diff)
UI: Fix panel drag icon added to redo panel
Error in cleanup commit 0d93bd8d639. Currently floating panels cannot be dragged, so the widget should not be displayed.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r--source/blender/editors/interface/interface_panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 839363c9599..514bc872b4a 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -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.