diff options
author | Jacques Lucke <jacques@blender.org> | 2022-01-07 10:06:09 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-01-07 10:11:25 +0300 |
commit | 6c906b7c219f3fdf9489856de03d0124e854c982 (patch) | |
tree | 54ad4a04a50eb2b15075220559ee6699dcf3d4d3 | |
parent | 7c04bc9a0114b5b3a7159f5aade86d51719a4cf6 (diff) |
Fix T94707: inverted output of separate geometry node incorrect
This was an oversight in rB3e92b4ed2408eacd126c0.
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_separate_geometry.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_separate_geometry.cc b/source/blender/nodes/geometry/nodes/node_geo_separate_geometry.cc index 63da7399c3e..fec1ac1363e 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_separate_geometry.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_separate_geometry.cc @@ -59,7 +59,7 @@ static void node_geo_exec(GeoNodeExecParams params) const NodeGeometrySeparateGeometry &storage = node_storage(params.node()); const AttributeDomain domain = static_cast<AttributeDomain>(storage.domain); - auto separate_geometry_maybe_recursively = [&](bool invert) { + auto separate_geometry_maybe_recursively = [&](GeometrySet &geometry_set, bool invert) { bool is_error; if (domain == ATTR_DOMAIN_INSTANCE) { /* Only delete top level instances. */ @@ -84,11 +84,11 @@ static void node_geo_exec(GeoNodeExecParams params) GeometrySet second_set(geometry_set); if (params.output_is_required("Selection")) { - separate_geometry_maybe_recursively(false); + separate_geometry_maybe_recursively(geometry_set, false); params.set_output("Selection", std::move(geometry_set)); } if (params.output_is_required("Inverted")) { - separate_geometry_maybe_recursively(true); + separate_geometry_maybe_recursively(second_set, true); params.set_output("Inverted", std::move(second_set)); } } |