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:
authorJulian Eisel <julian@blender.org>2020-11-17 17:25:05 +0300
committerJulian Eisel <julian@blender.org>2020-11-17 17:31:50 +0300
commitfd78f8699e034d52d5d0921a7b4c722f68b213cc (patch)
tree78095814a9c14346b8fc76f3839fe74b9a13d74b /source/blender/editors/interface/interface_panel.c
parentc12664a37fb78fa9d5ba7d0c73283ecd80d1dcef (diff)
Fix T81227: Modifier menu and text switch places
Logic was incorrect, mistake in f3b8792b963b. Updated comment to make intent more clear.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r--source/blender/editors/interface/interface_panel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index aafc1c53a3b..6b6d9a76313 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -1634,12 +1634,12 @@ static int find_highest_panel(const void *a, const void *b)
/* Stick uppermost header-less panels to the top of the region -
* prevent them from being sorted (multiple header-less panels have to be sorted though). */
if (panel_a->type->flag & PANEL_TYPE_NO_HEADER && panel_b->type->flag & PANEL_TYPE_NO_HEADER) {
- /* Skip and check for `ofsy` and #Panel.sortorder below. */
+ /* Pass the no-header checks and check for `ofsy` and #Panel.sortorder below. */
}
- if (panel_a->type->flag & PANEL_TYPE_NO_HEADER) {
+ else if (panel_a->type->flag & PANEL_TYPE_NO_HEADER) {
return -1;
}
- if (panel_b->type->flag & PANEL_TYPE_NO_HEADER) {
+ else if (panel_b->type->flag & PANEL_TYPE_NO_HEADER) {
return 1;
}