Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorWannes Malfait <Wannes>2021-10-12 18:57:12 +0300
committerHans Goudey <h.goudey@me.com>2021-10-12 18:57:12 +0300
commit0c7e836a1da0e637187d1d0c2cde9d6d89a6d0df (patch)
tree09ba19571e648c4846899e7da07bef1451b539fc /source
parentad802488756b4a8e79d94ce77e09d39e9c6b3b5d (diff)
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
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc b/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc
index 33f8c53e343..e4f6d3d766e 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc
@@ -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);