Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/main.c
| Show First 20 Lines • Show All 635 Lines • ▼ Show 20 Lines | switch ((ID_Type)type) { | ||||
| case ID_CV: | case ID_CV: | ||||
| return &(bmain->hair_curves); | return &(bmain->hair_curves); | ||||
| case ID_PT: | case ID_PT: | ||||
| return &(bmain->pointclouds); | return &(bmain->pointclouds); | ||||
| case ID_VO: | case ID_VO: | ||||
| return &(bmain->volumes); | return &(bmain->volumes); | ||||
| case ID_SIM: | case ID_SIM: | ||||
| return &(bmain->simulations); | return &(bmain->simulations); | ||||
| case ID_VE: | |||||
| return &(bmain->video_edits); | |||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| int set_listbasepointers(Main *bmain, ListBase *lb[/*INDEX_ID_MAX*/]) | int set_listbasepointers(Main *bmain, ListBase *lb[/*INDEX_ID_MAX*/]) | ||||
| { | { | ||||
| /* Libraries may be accessed from pretty much any other ID. */ | /* Libraries may be accessed from pretty much any other ID. */ | ||||
| lb[INDEX_ID_LI] = &(bmain->libraries); | lb[INDEX_ID_LI] = &(bmain->libraries); | ||||
| ▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | int set_listbasepointers(Main *bmain, ListBase *lb[/*INDEX_ID_MAX*/]) | ||||
| lb[INDEX_ID_SCR] = &(bmain->screens); | lb[INDEX_ID_SCR] = &(bmain->screens); | ||||
| lb[INDEX_ID_OB] = &(bmain->objects); | lb[INDEX_ID_OB] = &(bmain->objects); | ||||
| lb[INDEX_ID_LS] = &(bmain->linestyles); /* referenced by scenes */ | lb[INDEX_ID_LS] = &(bmain->linestyles); /* referenced by scenes */ | ||||
| lb[INDEX_ID_SCE] = &(bmain->scenes); | lb[INDEX_ID_SCE] = &(bmain->scenes); | ||||
| lb[INDEX_ID_WS] = &(bmain->workspaces); /* before wm, so it's freed after it! */ | lb[INDEX_ID_WS] = &(bmain->workspaces); /* before wm, so it's freed after it! */ | ||||
| lb[INDEX_ID_WM] = &(bmain->wm); | lb[INDEX_ID_WM] = &(bmain->wm); | ||||
| lb[INDEX_ID_MSK] = &(bmain->masks); | lb[INDEX_ID_MSK] = &(bmain->masks); | ||||
| lb[INDEX_ID_SIM] = &(bmain->simulations); | lb[INDEX_ID_SIM] = &(bmain->simulations); | ||||
| lb[INDEX_ID_VE] = &(bmain->video_edits); | |||||
| lb[INDEX_ID_NULL] = NULL; | lb[INDEX_ID_NULL] = NULL; | ||||
| return (INDEX_ID_MAX - 1); | return (INDEX_ID_MAX - 1); | ||||
| } | } | ||||