1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fixes the 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-11-05 15:10:42 +01:00
parent c3a6b0f418
commit fb7c23f30b
2 changed files with 145 additions and 130 deletions

View File

@@ -255,6 +255,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();