Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_nodes_evaluator.cc
| Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | static void get_socket_value(const SocketRef &socket, void *r_value) | ||||
| const bNodeSocket &bsocket = *socket.bsocket(); | const bNodeSocket &bsocket = *socket.bsocket(); | ||||
| /* This is not supposed to be a long term solution. Eventually we want that nodes can specify | /* This is not supposed to be a long term solution. Eventually we want that nodes can specify | ||||
| * more complex defaults (other than just single values) in their socket declarations. */ | * more complex defaults (other than just single values) in their socket declarations. */ | ||||
| if (bsocket.flag & SOCK_HIDE_VALUE) { | if (bsocket.flag & SOCK_HIDE_VALUE) { | ||||
| const bNode &bnode = *socket.bnode(); | const bNode &bnode = *socket.bnode(); | ||||
| if (bsocket.type == SOCK_VECTOR) { | if (bsocket.type == SOCK_VECTOR) { | ||||
| if (ELEM(bnode.type, | if (ELEM(bnode.type, | ||||
| GEO_NODE_SET_POSITION, | GEO_NODE_SET_POSITION, | ||||
| SH_NODE_TEX_IMAGE, | |||||
| SH_NODE_TEX_NOISE, | SH_NODE_TEX_NOISE, | ||||
| GEO_NODE_MESH_TO_POINTS, | GEO_NODE_MESH_TO_POINTS, | ||||
| GEO_NODE_PROXIMITY)) { | GEO_NODE_PROXIMITY)) { | ||||
| new (r_value) Field<float3>(bke::AttributeFieldInput::Create<float3>("position")); | new (r_value) Field<float3>(bke::AttributeFieldInput::Create<float3>("position")); | ||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| else if (bsocket.type == SOCK_INT) { | else if (bsocket.type == SOCK_INT) { | ||||
| ▲ Show 20 Lines • Show All 1,348 Lines • Show Last 20 Lines | |||||