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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-29 13:30:56 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-29 13:30:56 +0300
commitc007e3be720dd9ead90c049b1b2219ae65a9e453 (patch)
treefdce519675490234788ccd77652e348787e1e9aa /source/blender/editors/screen/area.c
parent8a92976254f38d1f260e7e23e48e0b6f92c6481c (diff)
UI: add back clip editor tool tabs until there is a toolbar.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 9655fb9f77a..94b30f8e3b0 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -2117,7 +2117,9 @@ void ED_region_panels_layout_ex(
int scroll;
/* XXX, should use some better check? */
- bool use_category_tabs = (1 << ar->regiontype) & RGN_TYPE_HAS_CATEGORY_MASK;
+ /* For now also has hardcoded check for clip editor until it supports actual toolbar. */
+ bool use_category_tabs = ((1 << ar->regiontype) & RGN_TYPE_HAS_CATEGORY_MASK) ||
+ (ar->regiontype == RGN_TYPE_TOOLS && sa->spacetype == SPACE_CLIP);
/* offset panels for small vertical tab area */
const char *category = NULL;
const int category_tabs_width = UI_PANEL_CATEGORY_MARGIN_WIDTH;