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

Fix "Use snap (Y)" inconsistent behavior #91587

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7592,7 +7592,7 @@ void Node3DEditor::_snap_selected_nodes_to_floor() {
}
}

void Node3DEditor::shortcut_input(const Ref<InputEvent> &p_event) {
void Node3DEditor::input(const Ref<InputEvent> &p_event) {
ERR_FAIL_COND(p_event.is_null());

if (!is_visible_in_tree()) {
Expand Down Expand Up @@ -8736,7 +8736,7 @@ Node3DEditor::Node3DEditor() {

selected = nullptr;

set_process_shortcut_input(true);
set_process_input(true);
add_to_group(SceneStringName(_spatial_editor_group));

EDITOR_DEF("editors/3d/manipulator_gizmo_size", 80);
Expand Down
4 changes: 2 additions & 2 deletions editor/plugins/node_3d_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -831,10 +831,10 @@ class Node3DEditor : public VBoxContainer {

void _update_theme();

void input(const Ref<InputEvent> &p_event) override;

protected:
void _notification(int p_what);
//void _gui_input(InputEvent p_event);
virtual void shortcut_input(const Ref<InputEvent> &p_event) override;

static void _bind_methods();

Expand Down