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 2 additions and 2 deletions
Showing only changes of commit 45733e4d5f - Show all commits

View File

@ -1295,7 +1295,7 @@ static int node_duplicate_exec(bContext *C, wmOperator *op)
Map<const bNodeSocket *, bNodeSocket *> socket_map;
Map<const ID *, ID *> duplicated_node_groups;
bNode *actibe_node = nodeGetActive(ntree);
bNode *active_node = nodeGetActive(ntree);
mod_moder marked this conversation as resolved
Review

typo: actibe

typo: acti**b**e
for (bNode *node : get_selected_nodes(*ntree)) {
bNode *new_node = bke::node_copy_with_mapping(
@ -1372,7 +1372,7 @@ static int node_duplicate_exec(bContext *C, wmOperator *op)
remap_pairing(*ntree, node_map);
if (bNode *new_active_node = node_map.lookup_default(actibe_node, nullptr)) {
if (bNode *new_active_node = node_map.lookup_default(active_node, nullptr)) {
nodeSetActive(ntree, new_active_node);
}