diff --git a/editor/animation/animation_blend_space_1d_editor.cpp b/editor/animation/animation_blend_space_1d_editor.cpp index 91cf5cd2b08..c169e2598d1 100644 --- a/editor/animation/animation_blend_space_1d_editor.cpp +++ b/editor/animation/animation_blend_space_1d_editor.cpp @@ -188,11 +188,6 @@ void AnimationNodeBlendSpace1DEditor::_blend_space_gui_input(const Ref mm = p_event; - if (mm.is_valid() && !blend_space_draw->has_focus()) { - blend_space_draw->grab_focus(); - blend_space_draw->queue_redraw(); - } - if (mm.is_valid() && dragging_selected_attempt) { dragging_selected = true; drag_ofs = ((mm->get_position() - drag_from) / blend_space_draw->get_size()) * ((blend_space->get_max_space() - blend_space->get_min_space()) * Vector2(1, 0)); diff --git a/editor/animation/animation_blend_space_2d_editor.cpp b/editor/animation/animation_blend_space_2d_editor.cpp index 44fd58234d3..6a4509cf10a 100644 --- a/editor/animation/animation_blend_space_2d_editor.cpp +++ b/editor/animation/animation_blend_space_2d_editor.cpp @@ -283,11 +283,6 @@ void AnimationNodeBlendSpace2DEditor::_blend_space_gui_input(const Ref mm = p_event; - if (mm.is_valid() && !blend_space_draw->has_focus()) { - blend_space_draw->grab_focus(); - blend_space_draw->queue_redraw(); - } - if (mm.is_valid() && dragging_selected_attempt) { dragging_selected = true; if (!read_only) { diff --git a/editor/animation/animation_state_machine_editor.cpp b/editor/animation/animation_state_machine_editor.cpp index c111d0298ab..6232150940b 100644 --- a/editor/animation/animation_state_machine_editor.cpp +++ b/editor/animation/animation_state_machine_editor.cpp @@ -506,8 +506,6 @@ void AnimationNodeStateMachineEditor::_state_machine_gui_input(const Refgrab_focus(); - String new_hovered_node_name; HoveredNodeArea new_hovered_node_area = HOVER_NODE_NONE; if (tool_select->is_pressed()) {