Fix Visual Script duplicate issue

(cherry picked from commit b893dc2028)
This commit is contained in:
Swarnim Arun 2018-07-26 14:01:48 +05:30 committed by Rémi Verschelde
parent 92fb290f69
commit 209c6164f4
1 changed files with 2 additions and 2 deletions

View File

@ -1274,7 +1274,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);
@ -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);
}
}