Merge branch 'blender-v4.0-release'

This commit is contained in:
Julian Eisel
2023-09-27 19:56:07 +02:00
2 changed files with 12 additions and 2 deletions

View File

@@ -950,7 +950,12 @@ static void image_tools_header_region_draw(const bContext *C, ARegion *region)
image_user_refresh_scene(C, sima);
ED_region_header_with_button_sections(C, region, uiButtonSectionsAlign::Top);
ED_region_header_with_button_sections(
C,
region,
(RGN_ALIGN_ENUM_FROM_MASK(region->alignment) == RGN_ALIGN_TOP) ?
uiButtonSectionsAlign::Top :
uiButtonSectionsAlign::Bottom);
}
/************************* header region **************************/

View File

@@ -1967,7 +1967,12 @@ static void view3d_tools_region_draw(const bContext *C, ARegion *region)
static void view3d_tools_header_region_draw(const bContext *C, ARegion *region)
{
ED_region_header_with_button_sections(C, region, uiButtonSectionsAlign::Top);
ED_region_header_with_button_sections(
C,
region,
(RGN_ALIGN_ENUM_FROM_MASK(region->alignment) == RGN_ALIGN_TOP) ?
uiButtonSectionsAlign::Top :
uiButtonSectionsAlign::Bottom);
}
/* add handlers, stuff you only do once or on area/region changes */