bmesh: lazy initialize bmesh tool flag pool, has the advantage that modifiers that...
[blender-staging.git] / source / blender / modifiers / intern / MOD_array.c
index b9dd37ac50c5f4fd8e8ff9e72054399658c9863d..8ddae9f3c5790617e2d3336515a889b40f87b265 100644 (file)
@@ -408,6 +408,7 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd,
         * cleaner way to do this. One possibility: a "mirror" BMOp would
         * certainly help by compressing it all into one top-level BMOp that
         * executes a lot of second-level BMOps. */
+       BM_mesh_elem_toolflags_ensure(bm);
        BMO_push(bm, NULL);
        bmesh_edit_begin(bm, 0);