diff options
Diffstat (limited to 'intern/cycles/graph/node.h')
-rw-r--r-- | intern/cycles/graph/node.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/cycles/graph/node.h b/intern/cycles/graph/node.h index 4473b8aca28..3c84dbdb4a7 100644 --- a/intern/cycles/graph/node.h +++ b/intern/cycles/graph/node.h @@ -31,6 +31,10 @@ struct Transform; /* Node */ +struct NodeOwner { + virtual ~NodeOwner(); +}; + struct Node { explicit Node(const NodeType *type, ustring name = ustring()); virtual ~Node() = 0; @@ -99,6 +103,12 @@ struct Node { ustring name; const NodeType *type; + + const NodeOwner *get_owner() const; + void set_owner(const NodeOwner *owner_); + + protected: + const NodeOwner *owner; }; CCL_NAMESPACE_END |