Skip to content

Commit

Permalink
Fix "Use snap (Y)" inconsistent behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ze2j committed May 5, 2024
1 parent 7ebc866 commit 01c92a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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("_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

0 comments on commit 01c92a2

Please sign in to comment.