Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_decimate.c
| Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| if (vweights) { | if (vweights) { | ||||
| MEM_freeN(vweights); | MEM_freeN(vweights); | ||||
| } | } | ||||
| updateFaceCount(ctx, dmd, bm->totface); | updateFaceCount(ctx, dmd, bm->totface); | ||||
| result = BKE_mesh_from_bmesh_for_eval_nomain(bm, NULL); | result = BKE_mesh_from_bmesh_for_eval_nomain(bm, NULL, mesh); | ||||
| /* make sure we never alloc'd these */ | /* make sure we never alloc'd these */ | ||||
| BLI_assert(bm->vtoolflagpool == NULL && bm->etoolflagpool == NULL && bm->ftoolflagpool == NULL); | BLI_assert(bm->vtoolflagpool == NULL && bm->etoolflagpool == NULL && bm->ftoolflagpool == NULL); | ||||
| BLI_assert(bm->vtable == NULL && bm->etable == NULL && bm->ftable == NULL); | BLI_assert(bm->vtable == NULL && bm->etable == NULL && bm->ftable == NULL); | ||||
| BM_mesh_free(bm); | BM_mesh_free(bm); | ||||
| #ifdef USE_TIMEIT | #ifdef USE_TIMEIT | ||||
| TIMEIT_END(decim); | TIMEIT_END(decim); | ||||
| Show All 34 Lines | |||||