Geometry Nodes: use implicit position input in noise node
This is the same behavior as in shader nodes.
This commit is contained in:
parent
32a4c7f188
commit
3b8d702a2f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue