Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
| Show First 20 Lines • Show All 2,205 Lines • ▼ Show 20 Lines | if (tag & LIB_TAG_ID_LINK_PLACEHOLDER) { | ||||
| /* For placeholder we only need to set the tag and properly initialize generic ID fields above, | /* For placeholder we only need to set the tag and properly initialize generic ID fields above, | ||||
| * no further data to read. */ | * no further data to read. */ | ||||
| return; | return; | ||||
| } | } | ||||
| if (id->asset_data) { | if (id->asset_data) { | ||||
| BLO_read_data_address(reader, &id->asset_data); | BLO_read_data_address(reader, &id->asset_data); | ||||
| BKE_asset_metadata_read(reader, id->asset_data); | BKE_asset_metadata_read(reader, id->asset_data); | ||||
| /* Restore runtime asset type info. */ | |||||
| const IDTypeInfo *id_type = BKE_idtype_get_info_from_id(id); | |||||
| id->asset_data->local_type_info = id_type->asset_type_info; | |||||
| } | } | ||||
| /* Link direct data of ID properties. */ | /* Link direct data of ID properties. */ | ||||
| if (id->properties) { | if (id->properties) { | ||||
| BLO_read_data_address(reader, &id->properties); | BLO_read_data_address(reader, &id->properties); | ||||
| /* this case means the data was written incorrectly, it should not happen */ | /* this case means the data was written incorrectly, it should not happen */ | ||||
| IDP_BlendDataRead(reader, &id->properties); | IDP_BlendDataRead(reader, &id->properties); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,427 Lines • Show Last 20 Lines | |||||