Curves: fix uninitialized curve type when adding new curves

This commit is contained in:
Jacques Lucke 2022-07-20 10:47:13 +02:00
parent c3b9a4e001
commit ecf4f4a71f
1 changed files with 3 additions and 0 deletions

View File

@ -361,6 +361,9 @@ void add_curves_on_mesh(CurvesGeometry &curves, const AddCurvesOnMeshInputs &inp
inputs.surface_to_curves_normal_mat);
}
/* Set curve types. */
MutableSpan<int8_t> types_span = curves.curve_types_for_write();
types_span.drop_front(old_curves_num).fill(CURVE_TYPE_CATMULL_ROM);
curves.update_curve_types();
}