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.
This commit is contained in:
parent
b20e89f69c
commit
62434a9d21
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue