Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraphEdit.cut_nodes_request signal #97229

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aryan-11825114
Copy link
Contributor

Fixes #97064
Should also close #92776

@aryan-11825114 aryan-11825114 requested review from a team as code owners September 20, 2024 10:42
@AThousandShips AThousandShips changed the title Add cut_nodes_request signal Add GraphEdit.cut_nodes_request signal Sep 20, 2024
@AThousandShips AThousandShips added this to the 4.4 milestone Sep 20, 2024
@@ -1999,6 +1999,9 @@ void GraphEdit::gui_input(const Ref<InputEvent> &p_ev) {
} else if (p_ev->is_action("ui_copy", true)) {
emit_signal(SNAME("copy_nodes_request"));
accept_event();
} else if (p_ev->is_action("ui_cut")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other actions pass true to the second parameter here, is there a reason why this one would need to differ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it seems to be a mistake on my part, will update it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference this is the check for exact match

@akien-mga
Copy link
Member

Makes sense to me from a quick review, but I'll let GraphEdit / VisualShader editor experts (@Geometror or @Chaosus) evaluate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants