Nodes: hide shader input in node properties panel

This was missing in d27a1c47fa.
This commit is contained in:
Jacques Lucke
2024-02-15 21:55:53 +01:00
parent f727ec95b7
commit d9d9ff1dcd

View File

@@ -44,7 +44,8 @@ static void draw_node_input(bContext *C,
BLI_assert(socket.typeinfo != nullptr);
/* Ignore disabled sockets and linked sockets and sockets without a `draw` callback. */
if (!socket.is_available() || (socket.flag & (SOCK_IS_LINKED | SOCK_HIDE_VALUE)) ||
socket.typeinfo->draw == nullptr || ELEM(socket.type, SOCK_GEOMETRY, SOCK_MATRIX))
socket.typeinfo->draw == nullptr ||
ELEM(socket.type, SOCK_GEOMETRY, SOCK_MATRIX, SOCK_SHADER))
{
return;
}