[Bf-blender-cvs] [0c0811829f6] blender2.8: UI: adjust header alignment

Campbell Barton noreply at git.blender.org
Tue Jun 12 23:02:46 CEST 2018


Commit: 0c0811829f6cf9aaed18cc0258d37827d1ab0e6e
Author: Campbell Barton
Date:   Tue Jun 12 22:59:15 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB0c0811829f6cf9aaed18cc0258d37827d1ab0e6e

UI: adjust header alignment

- User preferences header at the bottom.
- Action header at the top.

Now all editors accessible from the menu have their header at the top,
default layout for the timeline remains at the bottom.

===================================================================

M	source/blender/editors/space_action/space_action.c
M	source/blender/editors/space_userpref/space_userpref.c

===================================================================

diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 4498d2016d7..527e382ec1e 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -116,7 +116,7 @@ static SpaceLink *action_new(const ScrArea *sa, const Scene *scene)
 
 	BLI_addtail(&saction->regionbase, ar);
 	ar->regiontype = RGN_TYPE_HEADER;
-	ar->alignment = RGN_ALIGN_BOTTOM;
+	ar->alignment = RGN_ALIGN_TOP;
 
 	/* channel list region */
 	ar = MEM_callocN(sizeof(ARegion), "channel region for action");
diff --git a/source/blender/editors/space_userpref/space_userpref.c b/source/blender/editors/space_userpref/space_userpref.c
index 14001a11032..1d3c24c518a 100644
--- a/source/blender/editors/space_userpref/space_userpref.c
+++ b/source/blender/editors/space_userpref/space_userpref.c
@@ -64,7 +64,7 @@ static SpaceLink *userpref_new(const ScrArea *UNUSED(area), const Scene *UNUSED(
 
 	BLI_addtail(&spref->regionbase, ar);
 	ar->regiontype = RGN_TYPE_HEADER;
-	ar->alignment = RGN_ALIGN_TOP;
+	ar->alignment = RGN_ALIGN_BOTTOM;
 
 	/* main region */
 	ar = MEM_callocN(sizeof(ARegion), "main region for userpref");



More information about the Bf-blender-cvs mailing list