Fix #114152: Blender crashes when loading files with unknown IDProperty types. #114397

Merged
Bastien Montagne merged 1 commits from mont29/blender:tmp-fix-114152-crash-unknown-idprop into blender-v4.0-release 2023-11-02 14:33:15 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -1307,6 +1307,10 @@ static void IDP_DirectLinkProperty(IDProperty *prop, BlendDataReader *reader);
static void read_ui_data(IDProperty *prop, BlendDataReader *reader)
{
BLO_read_data_address(reader, &prop->ui_data);
if (!prop->ui_data) {
/* Can happen when opening more recent files with unknown tyes of IDProperties. */
return;
}
BLO_read_data_address(reader, &prop->ui_data->description);
switch (IDP_ui_data_type(prop)) {