[Bf-blender-cvs] [01f5845] master: Fix T40325: UILists do not save their height anymore
Bastien Montagne
noreply at git.blender.org
Fri May 23 08:56:48 CEST 2014
Commit: 01f5845778dd75c67b523d4f0d74a87f95492626
Author: Bastien Montagne
Date: Fri May 23 08:55:31 2014 +0200
https://developer.blender.org/rB01f5845778dd75c67b523d4f0d74a87f95492626
Fix T40325: UILists do not save their height anymore
===================================================================
M source/blender/editors/interface/interface_templates.c
===================================================================
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index e298d12..dd951e4 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -2852,11 +2852,11 @@ void uiTemplateList(uiLayout *layout, bContext *C, const char *listtype_name, co
ui_list = MEM_callocN(sizeof(uiList), "uiList");
BLI_strncpy(ui_list->list_id, ui_list_id, sizeof(ui_list->list_id));
BLI_addtail(&ar->ui_lists, ui_list);
+ ui_list->list_grip = -UI_LIST_AUTO_SIZE_THRESHOLD; /* Force auto size by default. */
}
if (!ui_list->dyn_data) {
ui_list->dyn_data = MEM_callocN(sizeof(uiListDyn), "uiList.dyn_data");
- ui_list->list_grip = -UI_LIST_AUTO_SIZE_THRESHOLD; /* Force auto size by default. */
}
dyn_data = ui_list->dyn_data;
More information about the Bf-blender-cvs
mailing list