Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc
| Show First 20 Lines • Show All 365 Lines • ▼ Show 20 Lines | else { | ||||
| Vector<int64_t> indices_to_copy; | Vector<int64_t> indices_to_copy; | ||||
| int selection_index = 0; | int selection_index = 0; | ||||
| for (const int i : input_splines.index_range()) { | for (const int i : input_splines.index_range()) { | ||||
| const Spline &spline = *input_splines[i]; | const Spline &spline = *input_splines[i]; | ||||
| 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); | ||||
| } | } | ||||
| selection_index++; | selection_index++; | ||||
| } | } | ||||
| /* Avoid creating an empty spline. */ | /* Avoid creating an empty spline. */ | ||||
| ▲ Show 20 Lines • Show All 844 Lines • Show Last 20 Lines | |||||