Geometry Nodes: use implicit position input in noise node

This is the same behavior as in shader nodes.
This commit is contained in:
Jacques Lucke 2021-09-20 19:01:08 +02:00
parent 32a4c7f188
commit 3b8d702a2f
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,8 @@ static void get_socket_value(const SocketRef &socket, void *r_value)
* more complex defaults (other than just single values) in their socket declarations. */
if (bsocket.flag & SOCK_HIDE_VALUE) {
const bNode &bnode = *socket.bnode();
if (bsocket.type == SOCK_VECTOR && bnode.type == GEO_NODE_SET_POSITION) {
if (bsocket.type == SOCK_VECTOR &&
ELEM(bnode.type, GEO_NODE_SET_POSITION, SH_NODE_TEX_NOISE)) {
new (r_value) Field<float3>(
std::make_shared<bke::AttributeFieldInput>("position", CPPType::get<float3>()));
return;