From e68144aed71497015384ab1a1504667a36fde330 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Dec 2013 19:16:44 +1100 Subject: Fix for crash in toolbar tabs with only one tab defined --- source/blender/editors/screen/area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 7b758122ac1..2fd3423b7e7 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1671,7 +1671,7 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char * panel = uiPanelFindByType(ar, pt); - if (pt->category[0] && !STREQ(category, pt->category)) { + if (use_category_tabs && pt->category[0] && !STREQ(category, pt->category)) { if ((panel == NULL) || ((panel->flag & PNL_PIN) == 0)) { continue; } -- cgit v1.2.3