Fix T92150: Incorrect invert in Delete Geometry node
The selection was inverted when deleting points from a spline. Differential Revision: https://developer.blender.org/D12840
This commit is contained in:

committed by
Hans Goudey

parent
ad80248875
commit
0c7e836a1d
@@ -371,7 +371,7 @@ static std::unique_ptr<CurveEval> curve_separate(const CurveEval &input_curve,
|
|||||||
|
|
||||||
indices_to_copy.clear();
|
indices_to_copy.clear();
|
||||||
for (const int i_point : IndexRange(spline.size())) {
|
for (const int i_point : IndexRange(spline.size())) {
|
||||||
if (selection[selection_index] == invert) {
|
if (selection[selection_index] != invert) {
|
||||||
/* Append i_point instead of selection_index because we need indices local to the spline
|
/* Append i_point instead of selection_index because we need indices local to the spline
|
||||||
* for copying. */
|
* for copying. */
|
||||||
indices_to_copy.append(i_point);
|
indices_to_copy.append(i_point);
|
||||||
|
Reference in New Issue
Block a user