Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-11-27 21:38:14 +0300
committerJacques Lucke <jacques@blender.org>2020-12-02 17:38:47 +0300
commitfc4a853846123ed320914df7f78340ec95efc97e (patch)
treede0f618cc2961ae20bab135b7a2c6e4784aff084 /source/blender/nodes/NOD_node_tree_ref.hh
parentae0aa4b94c4a9b5b166fbc0b5394dcc47455091d (diff)
Geometry Nodes: support muted nodes
The handling of muted nodes is handled at the derived node tree level now. This is also where expanding node groups is handled. Muted nodes are relinked and removed from the derived tree during construction. The geometry node evaluation code does not have to know about muted nodes this way.
Diffstat (limited to 'source/blender/nodes/NOD_node_tree_ref.hh')
-rw-r--r--source/blender/nodes/NOD_node_tree_ref.hh6
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.
*/