diff options
author | Hans Goudey <h.goudey@me.com> | 2021-12-22 23:00:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-12-22 23:00:34 +0300 |
commit | b4f978e9011d6c14f73ad871c77b1a325769e7c5 (patch) | |
tree | babb59d9d834cd1678febde0471037b7dadbb824 /source/blender/editors/space_node | |
parent | 586e2face61c2c05b46ccf13889e2153faba0078 (diff) |
Fix: Missing update when toggling node mute
Toggling node mute doesn't cause node trees to reevaluate after
rB7e712b2d6a0d257. Toggling a link mute still works though. To fix this,
the operator tags the node and node with a new update tag function
(that uses an existing tag internally).
Differential Revision: https://developer.blender.org/D13653
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_edit.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc index b9b843c5a4a..7539f4cf70b 100644 --- a/source/blender/editors/space_node/node_edit.cc +++ b/source/blender/editors/space_node/node_edit.cc @@ -1734,6 +1734,7 @@ static int node_mute_exec(bContext *C, wmOperator *UNUSED(op)) LISTBASE_FOREACH (bNode *, node, &snode->edittree->nodes) { if ((node->flag & SELECT) && !node->typeinfo->no_muting) { node->flag ^= NODE_MUTED; + BKE_ntree_update_tag_node_mute(snode->edittree, node); } } |