Fix #115037: Crash deleting tool node group from outliner #115047
|
@ -1155,6 +1155,11 @@ static void node_id_remap_cb(ID *old_id, ID *new_id, void *user_data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (GS(old_id->name) == ID_NT) {
|
else if (GS(old_id->name) == ID_NT) {
|
||||||
|
|
||||||
|
if (&snode->geometry_nodes_tool_tree->id == old_id) {
|
||||||
lichtwerk marked this conversation as resolved
Outdated
|
|||||||
|
snode->geometry_nodes_tool_tree = reinterpret_cast<bNodeTree *>(new_id);
|
||||||
|
}
|
||||||
lichtwerk marked this conversation as resolved
Bastien Montagne
commented
Definitely do NOT want to skip further processing of the NodeEditor path below! Definitely do *NOT* want to skip further processing of the NodeEditor path below!
|
|||||||
|
|
||||||
bNodeTreePath *path, *path_next;
|
bNodeTreePath *path, *path_next;
|
||||||
|
|
||||||
for (path = (bNodeTreePath *)snode->treepath.first; path; path = path->next) {
|
for (path = (bNodeTreePath *)snode->treepath.first; path; path = path->next) {
|
||||||
|
|
Loading…
Reference in New Issue
Any reason not to just do:
Use
&snode->geometry_nodes_tool_tree->id
andreinterpret_cast
below