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
This commit is contained in:
parent
30e3caaf82
commit
6cb96aea7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user