Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_mesh_api.c
| Show All 16 Lines | |||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "rna_internal.h" /* own include */ | #include "rna_internal.h" /* own include */ | ||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| # include "DNA_mesh_types.h" | # include "DNA_mesh_types.h" | ||||
| # include "BKE_anim_data.h" | |||||
| # include "BKE_mesh.h" | # include "BKE_mesh.h" | ||||
| # include "BKE_mesh_mapping.h" | # include "BKE_mesh_mapping.h" | ||||
| # include "BKE_mesh_runtime.h" | # include "BKE_mesh_runtime.h" | ||||
| # include "BKE_mesh_tangent.h" | # include "BKE_mesh_tangent.h" | ||||
| # include "ED_mesh.h" | # include "ED_mesh.h" | ||||
| static const char *rna_Mesh_unit_test_compare(struct Mesh *mesh, | static const char *rna_Mesh_unit_test_compare(struct Mesh *mesh, | ||||
| struct Mesh *mesh2, | struct Mesh *mesh2, | ||||
| ▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | |||||
| static void rna_Mesh_count_selected_items(Mesh *mesh, int r_count[3]) | static void rna_Mesh_count_selected_items(Mesh *mesh, int r_count[3]) | ||||
| { | { | ||||
| BKE_mesh_count_selected_items(mesh, r_count); | BKE_mesh_count_selected_items(mesh, r_count); | ||||
| } | } | ||||
| static void rna_Mesh_clear_geometry(Mesh *mesh) | static void rna_Mesh_clear_geometry(Mesh *mesh) | ||||
| { | { | ||||
| BKE_mesh_clear_geometry(mesh); | BKE_mesh_clear_geometry(mesh); | ||||
| BKE_animdata_free(&mesh->id, false); | |||||
| DEG_id_tag_update(&mesh->id, ID_RECALC_GEOMETRY_ALL_MODES); | DEG_id_tag_update(&mesh->id, ID_RECALC_GEOMETRY_ALL_MODES); | ||||
| WM_main_add_notifier(NC_GEOM | ND_DATA, mesh); | WM_main_add_notifier(NC_GEOM | ND_DATA, mesh); | ||||
| } | } | ||||
| #else | #else | ||||
| void RNA_api_mesh(StructRNA *srna) | void RNA_api_mesh(StructRNA *srna) | ||||
| ▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines | |||||