From 209c6164f436da13f7218755873b45404e61d517 Mon Sep 17 00:00:00 2001 From: Swarnim Arun Date: Thu, 26 Jul 2018 14:01:48 +0530 Subject: [PATCH] Fix Visual Script duplicate issue (cherry picked from commit b893dc202832f87f8ffa4591aeeb1caa31006046) --- modules/visual_script/visual_script_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index eac991c9722..1689dde54fd 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -1274,7 +1274,7 @@ void VisualScriptEditor::_on_nodes_duplicate() { Ref node = script->get_node(edited_func, F->get()); - Ref dupe = node->duplicate(); + Ref dupe = node->duplicate(true); int new_id = idc++; to_select.insert(new_id); @@ -2958,7 +2958,7 @@ void VisualScriptEditor::_menu_option(int p_what) { return; } if (node.is_valid()) { - clipboard->nodes[id] = node->duplicate(); + clipboard->nodes[id] = node->duplicate(true); clipboard->nodes_positions[id] = script->get_node_position(edited_func, id); } }