summaryrefslogtreecommitdiff
path: root/modules/visual_script
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-07-26 12:57:55 +0200
committerGitHub <noreply@github.com>2018-07-26 12:57:55 +0200
commit10af1b3444bca648dcb7bf1a73f61bc45f33e10d (patch)
treee25b69dad3e19ec47fb16c8b6c21c25761cd6c70 /modules/visual_script
parent391e46830f4f08ddfc9104fc9182d6944f609635 (diff)
parentb893dc202832f87f8ffa4591aeeb1caa31006046 (diff)
Merge pull request #20477 from swarnimarun/vs_duplicate_fix
Fix Visual Script duplicate issue
Diffstat (limited to 'modules/visual_script')
-rw-r--r--modules/visual_script/visual_script_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp
index d29104ed45..ecf220a623 100644
--- a/modules/visual_script/visual_script_editor.cpp
+++ b/modules/visual_script/visual_script_editor.cpp
@@ -1295,7 +1295,7 @@ void VisualScriptEditor::_on_nodes_duplicate() {
Ref<VisualScriptNode> node = script->get_node(edited_func, F->get());
- Ref<VisualScriptNode> dupe = node->duplicate();
+ Ref<VisualScriptNode> dupe = node->duplicate(true);
int new_id = idc++;
to_select.insert(new_id);
@@ -3170,7 +3170,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);
}
}