diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-29 12:20:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-29 21:30:16 +0300 |
commit | eac7ed8d047457564033f1547fea9a912ff0d9b7 (patch) | |
tree | bd9673d71e1d597bd84af276507d535420b69d1a /intern/cycles/graph/node.h | |
parent | 7cd18dda7d5d952829e6024ee9798ce77a1dede0 (diff) |
Code refactor: minor node and node type utility functions and changes.
Diffstat (limited to 'intern/cycles/graph/node.h')
-rw-r--r-- | intern/cycles/graph/node.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/cycles/graph/node.h b/intern/cycles/graph/node.h index de06df10265..bb84f982fb3 100644 --- a/intern/cycles/graph/node.h +++ b/intern/cycles/graph/node.h @@ -77,11 +77,14 @@ struct Node const array<Transform>& get_transform_array(const SocketType& input) const; const array<Node*>& get_node_array(const SocketType& input) const; - /* default values */ + /* generic values operations */ bool has_default_value(const SocketType& input) const; + void set_default_value(const SocketType& input); + bool equals_value(const Node& other, const SocketType& input) const; + void copy_value(const SocketType& input, const Node& other, const SocketType& other_input); - /* modified */ - bool modified(const Node& other); + /* equals */ + bool equals(const Node& other) const; ustring name; const NodeType *type; |