Cycles: Add utility function to query graph node size in bytes
This commit is contained in:
@@ -92,6 +92,9 @@ struct Node
|
||||
/* compute hash of node and its socket values */
|
||||
void hash(MD5Hash& md5);
|
||||
|
||||
/* Get total size of this node. */
|
||||
size_t get_total_size_in_bytes() const;
|
||||
|
||||
ustring name;
|
||||
const NodeType *type;
|
||||
};
|
||||
|
Reference in New Issue
Block a user