Nodes: add missing update tags in the case of simulation node trees
This commit is contained in:
parent
e77644982c
commit
4d6ac72264
|
@ -1697,6 +1697,8 @@ static int node_mute_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
}
|
||||
}
|
||||
|
||||
do_tag_update |= ED_node_is_simulation(snode);
|
||||
|
||||
snode_notify(C, snode);
|
||||
if (do_tag_update) {
|
||||
snode_dag_update(C, snode);
|
||||
|
@ -1739,6 +1741,8 @@ static int node_delete_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
}
|
||||
}
|
||||
|
||||
do_tag_update |= ED_node_is_simulation(snode);
|
||||
|
||||
ntreeUpdateTree(CTX_data_main(C), snode->edittree);
|
||||
|
||||
snode_notify(C, snode);
|
||||
|
|
|
@ -664,6 +664,8 @@ static void node_link_exit(bContext *C, wmOperator *op, bool apply_links)
|
|||
}
|
||||
ntree->is_updating = false;
|
||||
|
||||
do_tag_update |= ED_node_is_simulation(snode);
|
||||
|
||||
ntreeUpdateTree(bmain, ntree);
|
||||
snode_notify(C, snode);
|
||||
if (do_tag_update) {
|
||||
|
@ -1064,6 +1066,8 @@ static int cut_links_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
}
|
||||
|
||||
do_tag_update |= ED_node_is_simulation(snode);
|
||||
|
||||
if (found) {
|
||||
ntreeUpdateTree(CTX_data_main(C), snode->edittree);
|
||||
snode_notify(C, snode);
|
||||
|
|
Loading…
Reference in New Issue