Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
| Show First 20 Lines • Show All 2,189 Lines • ▼ Show 20 Lines | static void direct_link_id_common( | ||||
| id->icon_id = 0; | id->icon_id = 0; | ||||
| id->newid = NULL; /* Needed because .blend may have been saved with crap value here... */ | id->newid = NULL; /* Needed because .blend may have been saved with crap value here... */ | ||||
| id->orig_id = NULL; | id->orig_id = NULL; | ||||
| id->py_instance = NULL; | id->py_instance = NULL; | ||||
| /* Initialize with provided tag. */ | /* Initialize with provided tag. */ | ||||
| id->tag = tag; | id->tag = tag; | ||||
| if (ID_IS_LINKED(id)) { | |||||
| id->library_weak_reference = NULL; | |||||
| } | |||||
| else { | |||||
| BLO_read_data_address(reader, &id->library_weak_reference); | |||||
| } | |||||
| if (tag & LIB_TAG_ID_LINK_PLACEHOLDER) { | 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); | ||||
| ▲ Show 20 Lines • Show All 3,418 Lines • Show Last 20 Lines | |||||