diff options
author | Fabian Schempp <fabianschempp@googlemail.com> | 2021-08-22 00:27:55 +0300 |
---|---|---|
committer | Fabian Schempp <fabianschempp@googlemail.com> | 2021-08-22 00:27:55 +0300 |
commit | 49a16a1ca874a2b3939b3eee8d4d2b0cacad8b96 (patch) | |
tree | ed6142b79580bb47640e543d2b1424aa74e8d3d3 | |
parent | 7ac9f9a97f305f05fa4faffebf92ea7bd315745c (diff) |
Fix: Default selection in dissolve node.
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_dissolve.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_dissolve.cc b/source/blender/nodes/geometry/nodes/node_geo_dissolve.cc index 3d41fa80e75..55e7050543f 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_dissolve.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_dissolve.cc @@ -95,18 +95,19 @@ static void geo_node_dissolve_exec(GeoNodeExecParams params) const bNode &node = params.node(); const NodeGeometryDissolve &node_storage = *(NodeGeometryDissolve *)node.storage; - bool default_selection = false; + bool default_selection = true; AttributeDomain selection_domain = ATTR_DOMAIN_FACE; BMO_Delimit delimiter = BMO_DELIM_FACE_SELECTION; if (node_storage.selection_type == GEO_NODE_DISSOLVE_DELIMITTER_UNSELECTED) { selection_domain = ATTR_DOMAIN_EDGE; delimiter = BMO_DELIM_EDGE_SELECTION_INVSE; + default_selection = true; } else if (node_storage.selection_type == GEO_NODE_DISSOLVE_DELIMITTER_LIMIT) { selection_domain = ATTR_DOMAIN_EDGE; delimiter = BMO_DELIM_EDGE_SELECTION; - default_selection = true; + default_selection = false; }; GVArray_Typed<bool> selection_attribute = params.get_input_attribute<bool>( |