From 464bd50ae90667d3ea9828fd830d9fcb86740148 Mon Sep 17 00:00:00 2001 From: vaner-org Date: Fri, 22 Aug 2025 00:47:23 +0530 Subject: [PATCH] Double-click BlendSpace points to open their editor --- editor/animation/animation_blend_space_1d_editor.cpp | 6 ++++++ editor/animation/animation_blend_space_2d_editor.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/editor/animation/animation_blend_space_1d_editor.cpp b/editor/animation/animation_blend_space_1d_editor.cpp index 91cf5cd2b08..d3ee958bb8d 100644 --- a/editor/animation/animation_blend_space_1d_editor.cpp +++ b/editor/animation/animation_blend_space_1d_editor.cpp @@ -136,6 +136,12 @@ void AnimationNodeBlendSpace1DEditor::_blend_space_gui_input(const Ref node = blend_space->get_blend_point_node(i); EditorNode::get_singleton()->push_item(node.ptr(), "", true); + + if (mb->is_double_click() && AnimationTreeEditor::get_singleton()->can_edit(node)) { + _open_editor(); + return; + } + dragging_selected_attempt = true; drag_from = mb->get_position(); _update_tool_erase(); diff --git a/editor/animation/animation_blend_space_2d_editor.cpp b/editor/animation/animation_blend_space_2d_editor.cpp index 44fd58234d3..29ebca76909 100644 --- a/editor/animation/animation_blend_space_2d_editor.cpp +++ b/editor/animation/animation_blend_space_2d_editor.cpp @@ -177,6 +177,12 @@ void AnimationNodeBlendSpace2DEditor::_blend_space_gui_input(const Ref node = blend_space->get_blend_point_node(i); EditorNode::get_singleton()->push_item(node.ptr(), "", true); + + if (mb->is_double_click() && AnimationTreeEditor::get_singleton()->can_edit(node)) { + _open_editor(); + return; + } + dragging_selected_attempt = true; drag_from = mb->get_position(); _update_tool_erase();