Fixes copy-paste issue in the visual script editor

Moves copy and paste in their own functions so copy_nodes_request and paste_nodes_request are able to work.
Applies paste offset to the last mouse clicked position.
This commit is contained in:
David Cambré 2021-10-02 19:31:48 +02:00
parent f00ba792b3
commit 8714e1e961
2 changed files with 132 additions and 111 deletions

View file

@ -253,6 +253,8 @@ class VisualScriptEditor : public ScriptEditorBase {
void _node_item_selected();
void _node_item_unselected();
void _on_nodes_copy();
void _on_nodes_paste();
void _on_nodes_delete();
void _on_nodes_duplicate();