Fix T94322: add missing updates after recent refactor
This was a regression in rB7e712b2d6a0d257d272ed35622b41d06274af8df.
This commit is contained in:
@@ -85,7 +85,7 @@ bNode *node_add_node(const bContext &C, const char *idname, int type, float locx
|
||||
nodeSetSelected(node, true);
|
||||
|
||||
ED_node_set_active(&bmain, &snode, snode.edittree, node, nullptr);
|
||||
BKE_ntree_update_main_tree(&bmain, snode.edittree, nullptr);
|
||||
ED_node_tree_propagate_change(&C, &bmain, snode.edittree);
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
@@ -423,6 +423,7 @@ void ED_node_tree_propagate_change(const bContext *C, Main *bmain, bNodeTree *ro
|
||||
NodeTreeUpdateExtraParams params = {nullptr};
|
||||
params.tree_changed_fn = [](ID *id, bNodeTree *ntree, void *UNUSED(user_data)) {
|
||||
send_notifiers_after_tree_change(id, ntree);
|
||||
DEG_id_tag_update(&ntree->id, ID_RECALC_COPY_ON_WRITE);
|
||||
};
|
||||
params.tree_output_changed_fn = [](ID *UNUSED(id), bNodeTree *ntree, void *UNUSED(user_data)) {
|
||||
DEG_id_tag_update(&ntree->id, ID_RECALC_NTREE_OUTPUT);
|
||||
|
||||
@@ -695,7 +695,7 @@ static int link_socket_to_viewer(const bContext &C,
|
||||
ED_spreadsheet_context_paths_set_geometry_node(CTX_data_main(&C), &snode, viewer_bnode);
|
||||
}
|
||||
|
||||
BKE_ntree_update_main_tree(CTX_data_main(&C), &btree, nullptr);
|
||||
ED_node_tree_propagate_change(&C, CTX_data_main(&C), &btree);
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user