Fix: incorrect curve type counts after adding curves of same type

This commit is contained in:
Jacques Lucke 2023-01-18 00:05:33 +01:00
parent 301119619c
commit 737e7a63b1
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ void CurvesGeometry::fill_curve_types(const IndexMask selection, const CurveType
}
if (std::optional<int8_t> single_type = this->curve_types().get_if_single()) {
if (single_type == type) {
/* No need for an array if the types are already a single with the correct type. */
this->fill_curve_types(type);
return;
}
}