[Bf-blender-cvs] [c007e3be720] blender2.8: UI: add back clip editor tool tabs until there is a toolbar.

Brecht Van Lommel noreply at git.blender.org
Thu Nov 29 11:31:45 CET 2018


Commit: c007e3be720dd9ead90c049b1b2219ae65a9e453
Author: Brecht Van Lommel
Date:   Thu Nov 29 11:30:56 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBc007e3be720dd9ead90c049b1b2219ae65a9e453

UI: add back clip editor tool tabs until there is a toolbar.

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

M	source/blender/editors/screen/area.c

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

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;



More information about the Bf-blender-cvs mailing list