Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_main_api.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| static Mesh *rna_Main_meshes_new_from_object(Main *bmain, | static Mesh *rna_Main_meshes_new_from_object(Main *bmain, | ||||
| ReportList *reports, | ReportList *reports, | ||||
| Object *object, | Object *object, | ||||
| bool preserve_all_data_layers, | bool preserve_all_data_layers, | ||||
| Depsgraph *depsgraph) | Depsgraph *depsgraph) | ||||
| { | { | ||||
| switch (object->type) { | switch (object->type) { | ||||
| case OB_FONT: | case OB_FONT: | ||||
| case OB_CURVE: | case OB_CURVES_LEGACY: | ||||
| case OB_SURF: | case OB_SURF: | ||||
| case OB_MBALL: | case OB_MBALL: | ||||
| case OB_MESH: | case OB_MESH: | ||||
| break; | break; | ||||
| default: | default: | ||||
| BKE_report(reports, RPT_ERROR, "Object does not have geometry data"); | BKE_report(reports, RPT_ERROR, "Object does not have geometry data"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(node_groups, nodetrees, ID_NT) | RNA_MAIN_ID_TAG_FUNCS_DEF(node_groups, nodetrees, ID_NT) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(meshes, meshes, ID_ME) | RNA_MAIN_ID_TAG_FUNCS_DEF(meshes, meshes, ID_ME) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(lights, lights, ID_LA) | RNA_MAIN_ID_TAG_FUNCS_DEF(lights, lights, ID_LA) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(libraries, libraries, ID_LI) | RNA_MAIN_ID_TAG_FUNCS_DEF(libraries, libraries, ID_LI) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(screens, screens, ID_SCR) | RNA_MAIN_ID_TAG_FUNCS_DEF(screens, screens, ID_SCR) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(window_managers, wm, ID_WM) | RNA_MAIN_ID_TAG_FUNCS_DEF(window_managers, wm, ID_WM) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(images, images, ID_IM) | RNA_MAIN_ID_TAG_FUNCS_DEF(images, images, ID_IM) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(lattices, lattices, ID_LT) | RNA_MAIN_ID_TAG_FUNCS_DEF(lattices, lattices, ID_LT) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(curves, curves, ID_CU) | RNA_MAIN_ID_TAG_FUNCS_DEF(curves, curves, ID_CU_LEGACY) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(metaballs, metaballs, ID_MB) | RNA_MAIN_ID_TAG_FUNCS_DEF(metaballs, metaballs, ID_MB) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(fonts, fonts, ID_VF) | RNA_MAIN_ID_TAG_FUNCS_DEF(fonts, fonts, ID_VF) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(textures, textures, ID_TE) | RNA_MAIN_ID_TAG_FUNCS_DEF(textures, textures, ID_TE) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(brushes, brushes, ID_BR) | RNA_MAIN_ID_TAG_FUNCS_DEF(brushes, brushes, ID_BR) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(worlds, worlds, ID_WO) | RNA_MAIN_ID_TAG_FUNCS_DEF(worlds, worlds, ID_WO) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(collections, collections, ID_GR) | RNA_MAIN_ID_TAG_FUNCS_DEF(collections, collections, ID_GR) | ||||
| // RNA_MAIN_ID_TAG_FUNCS_DEF(shape_keys, key, ID_KE) | // RNA_MAIN_ID_TAG_FUNCS_DEF(shape_keys, key, ID_KE) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(texts, texts, ID_TXT) | RNA_MAIN_ID_TAG_FUNCS_DEF(texts, texts, ID_TXT) | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||