Fix #108049: Nodes pasting can leave multiple active nodes #108535
|
@ -269,6 +269,9 @@ static int node_clipboard_paste_exec(bContext *C, wmOperator *op)
|
|||
for (bNode *new_node : node_map.values()) {
|
||||
nodeSetSelected(new_node, true);
|
||||
|
||||
/* Keep previous active node, this is in line with how objects are pasted. */
|
||||
|
||||
new_node->flag &= ~NODE_ACTIVE;
|
||||
|
||||
/* The parent pointer must be redirected to new node. */
|
||||
if (new_node->parent) {
|
||||
if (node_map.contains(new_node->parent)) {
|
||||
|
|
Loading…
Reference in New Issue
That seems like a reasonable tidbit for the commit message, but the added line really works by itself IMO. And if object copy & paste is ever changed, that might end up being more confusing than helpful!