Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/writefile.c
| Show First 20 Lines • Show All 3,835 Lines • ▼ Show 20 Lines | #endif | ||||
| while (a--) { | while (a--) { | ||||
| ID *id = lbarray[a]->first; | ID *id = lbarray[a]->first; | ||||
| if (id && GS(id->name) == ID_LI) { | if (id && GS(id->name) == ID_LI) { | ||||
| continue; /* Libraries are handled separately below. */ | continue; /* Libraries are handled separately below. */ | ||||
| } | } | ||||
| for (; id; id = id->next) { | for (; id; id = id->next) { | ||||
| /* We should never attempt to write non-regular IDs (i.e. all kind of temp/runtime ones). */ | |||||
| BLI_assert((id->tag & (LIB_TAG_FREE_NO_MAIN | LIB_TAG_FREE_NO_USER_REFCOUNT | LIB_TAG_FREE_NOT_ALLOCATED)) == 0); | |||||
| switch ((ID_Type)GS(id->name)) { | switch ((ID_Type)GS(id->name)) { | ||||
| case ID_WM: | case ID_WM: | ||||
| write_windowmanager(wd, (wmWindowManager *)id); | write_windowmanager(wd, (wmWindowManager *)id); | ||||
| break; | break; | ||||
| case ID_SCR: | case ID_SCR: | ||||
| write_screen(wd, (bScreen *)id); | write_screen(wd, (bScreen *)id); | ||||
| break; | break; | ||||
| case ID_MC: | case ID_MC: | ||||
| ▲ Show 20 Lines • Show All 298 Lines • Show Last 20 Lines | |||||