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:
parent
ad80248875
commit
0c7e836a1d
Notes:
blender-bot
2023-02-14 08:40:26 +01:00
Referenced by issue #92150, Geometry Nodes: Delete Geometry inverts selection for curves
|
@ -371,7 +371,7 @@ static std::unique_ptr<CurveEval> curve_separate(const CurveEval &input_curve,
|
|||
|
||||
indices_to_copy.clear();
|
||||
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
|
||||
* for copying. */
|
||||
indices_to_copy.append(i_point);
|
||||
|
|
Loading…
Reference in New Issue