[Bf-blender-cvs] [62434a9d218] master: Geometry Nodes: Improve search weight for named attribute exists socket
Hans Goudey
noreply at git.blender.org
Thu Dec 8 18:59:18 CET 2022
Commit: 62434a9d21875908a938653b06aee374b3537987
Author: Hans Goudey
Date: Thu Dec 8 10:50:03 2022 -0600
Branches: master
https://developer.blender.org/rB62434a9d21875908a938653b06aee374b3537987
Geometry Nodes: Improve search weight for named attribute exists socket
Weight the "Exists" output below the "Attribute" output. This would
happen automatically if we had proper multi-type sockets.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc b/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc
index 90e7f58c07e..5d4a90c09cd 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc
@@ -70,10 +70,13 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
node_storage(node).data_type = *type;
params.update_and_connect_available_socket(node, "Attribute");
});
- params.add_item(IFACE_("Exists"), [node_type](LinkSearchOpParams ¶ms) {
- bNode &node = params.add_node(node_type);
- params.update_and_connect_available_socket(node, "Exists");
- });
+ params.add_item(
+ IFACE_("Exists"),
+ [node_type](LinkSearchOpParams ¶ms) {
+ bNode &node = params.add_node(node_type);
+ params.update_and_connect_available_socket(node, "Exists");
+ },
+ -1);
}
}
}
More information about the Bf-blender-cvs
mailing list