Fix #146724: Crash when deleting node group from outliner

An update to set the right context was missing after the current
`edittree` was updated.

Pull Request: https://projects.blender.org/blender/blender/pulls/147828
This commit is contained in:
Habib Gahbiche
2025-10-13 12:00:32 +02:00
parent 1216651ca9
commit e7a220e056

View File

@@ -1560,6 +1560,7 @@ static void node_id_remap(ID *old_id, ID *new_id, SpaceNode *snode)
if (snode->treepath.last) {
path = (bNodeTreePath *)snode->treepath.last;
snode->edittree = path->nodetree;
ED_node_set_active_viewer_key(snode);
}
else {
snode->edittree = nullptr;