mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
3378008e94
commit
26744b6e2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue