summaryrefslogtreecommitdiffstats
path: root/editor/plugins/visual_shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-29 00:46:59 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-29 00:46:59 +0200
commit3fbd33af85ab89a90c16773c6f853ba577c48ee1 (patch)
tree143dd6e4329699d194fb7038211183acc07f657d /editor/plugins/visual_shader_editor_plugin.cpp
parenta11f970f91f8e049501d2077a3de3fba26bba1ba (diff)
parentb4460c6ba3ef56b19713b86485aea37d5f136b5e (diff)
downloadredot-engine-3fbd33af85ab89a90c16773c6f853ba577c48ee1.tar.gz
Merge pull request #97229 from aryan-11825114/ctrl-x-visual-shader
Add `GraphEdit.cut_nodes_request` signal
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index f98a30ebb3..ede8351e41 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -6300,6 +6300,7 @@ VisualShaderEditor::VisualShaderEditor() {
graph->connect("scroll_offset_changed", callable_mp(this, &VisualShaderEditor::_scroll_changed));
graph->connect("duplicate_nodes_request", callable_mp(this, &VisualShaderEditor::_duplicate_nodes));
graph->connect("copy_nodes_request", callable_mp(this, &VisualShaderEditor::_copy_nodes).bind(false));
+ graph->connect("cut_nodes_request", callable_mp(this, &VisualShaderEditor::_copy_nodes).bind(true));
graph->connect("paste_nodes_request", callable_mp(this, &VisualShaderEditor::_paste_nodes).bind(false, Point2()));
graph->connect("delete_nodes_request", callable_mp(this, &VisualShaderEditor::_delete_nodes_request));
graph->connect(SceneStringName(gui_input), callable_mp(this, &VisualShaderEditor::_graph_gui_input));