Nodes: Include rotation socket type in anonymous attribute inferencing

Rotation socket is missing in `is_possible_field_socket` for detecting socket types that can be fields.

Pull Request: https://projects.blender.org/blender/blender/pulls/113197
This commit is contained in:
Lukas Tönne
2023-10-03 11:39:47 +02:00
parent 48fe3aab36
commit a06403cd3b

View File

@@ -21,7 +21,7 @@ using nodes::NodeDeclaration;
static bool is_possible_field_socket(const eNodeSocketDatatype type)
{
return ELEM(type, SOCK_FLOAT, SOCK_VECTOR, SOCK_RGBA, SOCK_BOOLEAN, SOCK_INT);
return ELEM(type, SOCK_FLOAT, SOCK_VECTOR, SOCK_RGBA, SOCK_BOOLEAN, SOCK_INT, SOCK_ROTATION);
}
static bool socket_is_field(const bNodeSocket &socket)