From 6cb96aea7c9197a16b6dd8e315bfb86bc8d257bd Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Mon, 4 Sep 2023 12:46:22 +0200 Subject: [PATCH] Fix: Outliner missing update adding asset nodegroups Blender File view was not listing the new group under "Node Groups" after import (this is not covered by ED_node_tree_propagate_change() - and probably shouldnt). Added the dedicated notifier for this case in the operator. Pull Request: https://projects.blender.org/blender/blender/pulls/111924 --- source/blender/editors/space_node/node_add.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/space_node/node_add.cc b/source/blender/editors/space_node/node_add.cc index b58bf52ad3a..4032d3b29d8 100644 --- a/source/blender/editors/space_node/node_add.cc +++ b/source/blender/editors/space_node/node_add.cc @@ -324,6 +324,7 @@ static int node_add_group_exec(bContext *C, wmOperator *op) nodeSetActive(ntree, group_node); ED_node_tree_propagate_change(C, bmain, nullptr); + WM_event_add_notifier(C, NC_NODE | NA_ADDED, nullptr); DEG_relations_tag_update(bmain); return OPERATOR_FINISHED; } @@ -425,6 +426,7 @@ static bool add_node_group_asset(const bContext &C, nodeSetActive(&edit_tree, group_node); ED_node_tree_propagate_change(&C, &bmain, nullptr); + WM_event_add_notifier(&C, NC_NODE | NA_ADDED, nullptr); DEG_relations_tag_update(&bmain); return true;