MCPcopy Create free account
hub / github.com/blender/cycles / get_string

Method get_string

src/graph/node.cpp:223–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223ustring Node::get_string(const SocketType &input) const
224{
225 if (input.type == SocketType::STRING) {
226 return get_socket_value<ustring>(this, input);
227 }
228 if (input.type == SocketType::ENUM) {
229 const NodeEnum &enm = *input.enum_values;
230 const int intvalue = get_socket_value<int>(this, input);
231 return (enm.exists(intvalue)) ? enm[intvalue] : ustring();
232 }
233 assert(0);
234 return ustring();
235}
236
237Transform Node::get_transform(const SocketType &input) const
238{

Callers 6

set_osl_cameraMethod · 0.80
addMethod · 0.80
parameterMethod · 0.80
GetNodeValueFunction · 0.80
xml_write_nodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected