bmesh: lazy initialize bmesh tool flag pool, has the advantage that modifiers that...
[blender-staging.git] / source / blender / modifiers / intern / MOD_decimate.c
index dc29e59d549fa1b91dd17fd652c8cd0bca096080..3f8eaa438c9e0d318ba435800f8c402c439f1170 100644 (file)
@@ -186,6 +186,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
        /* update for display only */
        dmd->face_count = bm->totface;
        result = CDDM_from_bmesh(bm, FALSE);
+       BLI_assert(bm->toolflagpool == NULL);  /* make sure we never alloc'd this */
        BM_mesh_free(bm);
 
 #ifdef USE_TIMEIT