diff options
Diffstat (limited to 'source/blender/nodes/NOD_node_tree_ref.hh')
-rw-r--r-- | source/blender/nodes/NOD_node_tree_ref.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_node_tree_ref.hh b/source/blender/nodes/NOD_node_tree_ref.hh index ebdd8b7fe49..7fcc117ba93 100644 --- a/source/blender/nodes/NOD_node_tree_ref.hh +++ b/source/blender/nodes/NOD_node_tree_ref.hh @@ -153,6 +153,7 @@ class NodeRef : NonCopyable, NonMovable { bool is_group_node() const; bool is_group_input_node() const; bool is_group_output_node() const; + bool is_muted() const; }; class NodeTreeRef : NonCopyable, NonMovable { @@ -402,6 +403,11 @@ inline bool NodeRef::is_group_output_node() const return bnode_->type == NODE_GROUP_OUTPUT; } +inline bool NodeRef::is_muted() const +{ + return (bnode_->flag & NODE_MUTED) != 0; +} + /* -------------------------------------------------------------------- * NodeRef inline methods. */ |