Fix #162119: Project Point node fails to auto-connect with vector link

The Project Point node cannot be inserted on an existing connection
between vector sockets despite the node having a vector input and a
vector output. However, it can be dropped on a connection between
matrix sockets despite not having a matrix output. This is unlike the
Transform Point node, which has similar inputs and ouputs.

To fix this, mark the vector input of the Project Point node as the
default link socket as it is done for the Transform Point node.

Pull Request: https://projects.blender.org/blender/blender/pulls/162121
This commit is contained in:
Kévin Dietrich 2026-07-31 22:29:24 +02:00 • committed by Kévin Dietrich
parent 3378008e94
commit 26744b6e2e

View file

@ -15,7 +15,7 @@ static void node_declare(NodeDeclarationBuilder &b)
b.use_custom_socket_order();
b.allow_any_socket_order();
b.is_function_node();
b.add_input<decl::Vector>("Vector"_ustr).subtype(PROP_XYZ);
b.add_input<decl::Vector>("Vector"_ustr).subtype(PROP_XYZ).is_default_link_socket();
b.add_output<decl::Vector>("Vector"_ustr).subtype(PROP_XYZ).align_with_previous();
b.add_input<decl::Matrix>("Transform"_ustr);
}