[Bf-blender-cvs] [e68144a] master: Fix for crash in toolbar tabs with only one tab defined
Campbell Barton
noreply at git.blender.org
Tue Dec 17 09:17:08 CET 2013
Commit: e68144aed71497015384ab1a1504667a36fde330
Author: Campbell Barton
Date: Tue Dec 17 19:16:44 2013 +1100
http://developer.blender.org/rBe68144aed71497015384ab1a1504667a36fde330
Fix for crash in toolbar tabs with only one tab defined
===================================================================
M source/blender/editors/screen/area.c
===================================================================
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 7b75812..2fd3423 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;
}
More information about the Bf-blender-cvs
mailing list