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 &params)
         node_storage(node).data_type = *type;
         params.update_and_connect_available_socket(node, "Attribute");
       });
-      params.add_item(IFACE_("Exists"), [node_type](LinkSearchOpParams 
&params) {
-        bNode &node = params.add_node(node_type);
-        params.update_and_connect_available_socket(node, "Exists");
-      });
+      params.add_item(
+          IFACE_("Exists"),
+          [node_type](LinkSearchOpParams &params) {
+            bNode &node = params.add_node(node_type);
+            params.update_and_connect_available_socket(node, "Exists");
+          },
+          -1);
     }
   }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to