| 221 | } |
| 222 | |
| 223 | ustring 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 | |
| 237 | Transform Node::get_transform(const SocketType &input) const |
| 238 | { |
no outgoing calls
no test coverage detected