Fix T81227: Modifier menu and text switch places
Logic was incorrect, mistake inf3b8792b96
. Updated comment to make intent more clear. Same asfd78f8699e
, but needed conflict resolution as the panel-type flags where renamed in master.
This commit is contained in:
parent
dede4aac5b
commit
0724fabcf5
Notes:
blender-bot
2023-02-14 08:39:23 +01:00
Referenced by issue #81227, Modifier menu and text switch places
|
@ -1654,12 +1654,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 & PNL_NO_HEADER && panel_b->type->flag & PNL_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 & PNL_NO_HEADER) {
|
||||
else if (panel_a->type->flag & PNL_NO_HEADER) {
|
||||
return -1;
|
||||
}
|
||||
if (panel_b->type->flag & PNL_NO_HEADER) {
|
||||
else if (panel_b->type->flag & PNL_NO_HEADER) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue