Fix #108049: De-duplicate copied active node #108082

Closed
Iliya Katushenock wants to merge 6 commits from mod_moder:tmp_fix_deduplicate_active_node_of_copys into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 2 deletions
Showing only changes of commit e3591a21da - Show all commits

View File

@ -332,8 +332,7 @@ static int node_clipboard_paste_exec(bContext *C, wmOperator *op)
update_multi_input_indices_for_removed_links(*new_node);
}
if (clipboard.active_node != nullptr) {
bNode *new_active_node = node_map.lookup(clipboard.active_node);
if (bNode *new_active_node = node_map.lookup_default(clipboard.active_node, nullptr)) {
nodeSetActive(&tree, new_active_node);
}