Fix #126587: GPv3: Select less fails if all points in stroke selected

Handle the case separately when end points of strokes are selected.
Always deselect them (i.e. set "true", later array values are inverted)
when executing select less operation.

Pull Request: https://projects.blender.org/blender/blender/pulls/126591
This commit is contained in:
Pratik Borhade
2024-09-30 11:00:34 +02:00
committed by Falk David
parent 7f226dc8ed
commit 866ef5b468

View File

@@ -646,7 +646,14 @@ void select_adjacent(bke::CurvesGeometry &curves,
selection_typed[point_i] = true;
}
}
if (deselect) {
if (!selection_typed[first_point]) {
selection_typed[first_point] = true;
}
if (!selection_typed[last_point]) {
selection_typed[last_point] = true;
}
}
/* Handle cyclic curve case. */
if (cyclic[curve_i]) {
if (selection_typed[first_point] != selection_typed[last_point]) {