Fix T40325: UILists do not save their height anymore
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user