Fix: Crash deleting all curve points

There was a special case for when all points were selected,
but a missing return caused the general case to run afterwards.
This commit is contained in:
Hans Goudey
2023-06-13 11:23:12 -04:00
parent ea33172409
commit 13d567ba92

View File

@@ -1170,6 +1170,7 @@ void CurvesGeometry::remove_points(const IndexMask &points_to_delete,
}
if (points_to_delete.size() == this->points_num()) {
*this = {};
return;
}
IndexMaskMemory memory;
const IndexMask points_to_copy = points_to_delete.complement(this->points_range(), memory);