Fix T40325: UILists do not save their height anymore

This commit is contained in:
Bastien Montagne 2014-05-23 08:55:31 +02:00
parent 561be3ac53
commit 01f5845778
Notes: blender-bot 2023-02-14 10:36:34 +01:00
Referenced by issue #40325, UILists do not save their height anymore
1 changed files with 1 additions and 1 deletions

View File

@ -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;