[Bf-blender-cvs] [d05575f9428] tracking_tools: Fix tool header position in movie clip editor
Sergey Sharybin
noreply at git.blender.org
Thu May 12 13:05:14 CEST 2022
Commit: d05575f942894254fba0d662f8e5125820434fe6
Author: Sergey Sharybin
Date: Thu May 12 13:04:10 2022 +0200
Branches: tracking_tools
https://developer.blender.org/rBd05575f942894254fba0d662f8e5125820434fe6
Fix tool header position in movie clip editor
The tool header was added on top of the regular header for the
new clip editor spaces.
===================================================================
M source/blender/editors/space_clip/space_clip.c
===================================================================
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index f4b88e1caed..fa0a5acd23d 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -230,20 +230,20 @@ static SpaceLink *clip_create(const ScrArea *area, const Scene *scene)
sc = DNA_struct_default_alloc(SpaceClip);
- /* tool header */
- region = MEM_callocN(sizeof(ARegion), "tool header for clip");
+ /* header */
+ region = MEM_callocN(sizeof(ARegion), "header for clip");
BLI_addtail(&sc->regionbase, region);
- region->regiontype = RGN_TYPE_TOOL_HEADER;
+ region->regiontype = RGN_TYPE_HEADER;
region->alignment = (U.uiflag & USER_HEADER_BOTTOM) ? RGN_ALIGN_BOTTOM : RGN_ALIGN_TOP;
- region->flag = RGN_FLAG_HIDDEN | RGN_FLAG_HIDDEN_BY_USER;
- /* header */
- region = MEM_callocN(sizeof(ARegion), "header for clip");
+ /* tool header */
+ region = MEM_callocN(sizeof(ARegion), "tool header for clip");
BLI_addtail(&sc->regionbase, region);
- region->regiontype = RGN_TYPE_HEADER;
+ region->regiontype = RGN_TYPE_TOOL_HEADER;
region->alignment = (U.uiflag & USER_HEADER_BOTTOM) ? RGN_ALIGN_BOTTOM : RGN_ALIGN_TOP;
+ region->flag = RGN_FLAG_HIDDEN | RGN_FLAG_HIDDEN_BY_USER;
/* tools view */
region = MEM_callocN(sizeof(ARegion), "tools for clip");
More information about the Bf-blender-cvs
mailing list