Fix: missing node tree update after deleting library
Node trees have to be updated after remapping IDs in the node tree. This will, among other things, create/delete sockets on group nodes. Furthermore, this also tags the depsgraph so that objects that (indirectly) depend on the node group output are reevaluated. The tagging of node trees to update already happens in `foreach_libblock_remap_callback_apply` for a while, the issue is that the actual propagation of tagged changes does not happen currently. I was checking this because Simon ran into some bug after deleting libraries. He couldn't reproduce it anymore, but my best guess right now is that it is caused by a missing update. Pull Request: https://projects.blender.org/blender/blender/pulls/124980
This commit is contained in:
@@ -3107,6 +3107,8 @@ static int outliner_lib_operation_exec(bContext *C, wmOperator *op)
|
||||
break;
|
||||
}
|
||||
|
||||
ED_node_tree_propagate_change(C, bmain, nullptr);
|
||||
|
||||
/* wrong notifier still... */
|
||||
WM_event_add_notifier(C, NC_ID | NA_EDITED, nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user