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

Method has_default_value

src/graph/node.cpp:300–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298/* generic value operations */
299
300bool Node::has_default_value(const SocketType &input) const
301{
302 const void *src = input.default_value;
303 void *dst = &get_socket_value<char>(this, input);
304 return memcmp(dst, src, input.packed_size()) == 0;
305}
306
307void Node::set_default_value(const SocketType &input)
308{

Callers 1

xml_write_nodeFunction · 0.80

Calls 1

packed_sizeMethod · 0.45

Tested by

no test coverage detected