Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh.c
| Show First 20 Lines • Show All 516 Lines • ▼ Show 20 Lines | void BKE_mesh_init(Mesh *me) | ||||
| me->smoothresh = DEG2RADF(30); | me->smoothresh = DEG2RADF(30); | ||||
| me->texflag = ME_AUTOSPACE; | me->texflag = ME_AUTOSPACE; | ||||
| CustomData_reset(&me->vdata); | CustomData_reset(&me->vdata); | ||||
| CustomData_reset(&me->edata); | CustomData_reset(&me->edata); | ||||
| CustomData_reset(&me->fdata); | CustomData_reset(&me->fdata); | ||||
| CustomData_reset(&me->pdata); | CustomData_reset(&me->pdata); | ||||
| CustomData_reset(&me->ldata); | CustomData_reset(&me->ldata); | ||||
| BKE_mesh_runtime_reset(me); | |||||
| } | } | ||||
| Mesh *BKE_mesh_add(Main *bmain, const char *name) | Mesh *BKE_mesh_add(Main *bmain, const char *name) | ||||
| { | { | ||||
| Mesh *me; | Mesh *me; | ||||
| me = BKE_libblock_alloc(bmain, ID_ME, name, 0); | me = BKE_libblock_alloc(bmain, ID_ME, name, 0); | ||||
| ▲ Show 20 Lines • Show All 1,470 Lines • Show Last 20 Lines | |||||