Fix: Crash when grouping frame node but not its children

Most likely caused by ab4926bcff
This commit is contained in:
Hans Goudey 2022-12-20 16:30:11 -06:00
parent 51e2ce7df5
commit d0348bcb8a
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ static void node_group_make_insert_selected(const bContext &C,
if (node->parent == nullptr) {
continue;
}
if (nodes_to_move.contains(node->parent) && nodes_to_move.contains(node)) {
if (nodes_to_move.contains(node->parent) && !nodes_to_move.contains(node)) {
nodeDetachNode(&ntree, node);
}
}