diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-03 11:02:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-07 14:18:15 +0300 |
commit | ad489b71646a2e03e2ce9b0d193d541e3987b4cd (patch) | |
tree | 90c267c776585606c65156253ec3ce5b96101588 /intern/cycles/graph/node.h | |
parent | b1f1a1ca6035e23d66656c97c16fe081caafcae8 (diff) |
Cleanup: add type inheritance for Cycles nodes
Diffstat (limited to 'intern/cycles/graph/node.h')
-rw-r--r-- | intern/cycles/graph/node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/graph/node.h b/intern/cycles/graph/node.h index d35a1bb489c..4473b8aca28 100644 --- a/intern/cycles/graph/node.h +++ b/intern/cycles/graph/node.h @@ -94,6 +94,9 @@ struct Node { /* Get total size of this node. */ size_t get_total_size_in_bytes() const; + /* Type testing, taking into account base classes. */ + bool is_a(const NodeType *type); + ustring name; const NodeType *type; }; |