From 739a863425d22ac70c5ac2f683a85f4b450fcfe1 Mon Sep 17 00:00:00 2001 From: Stuart Carnie Date: Tue, 4 Feb 2025 12:38:06 +1100 Subject: [PATCH] editor: Fix node selection within SubViewports using size 2d override --- editor/plugins/canvas_item_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 4256e74619a4..898b966a48c7 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -623,7 +623,7 @@ void CanvasItemEditor::_find_canvas_items_at_pos(const Point2 &p_pos, Node *p_no return; } xform = vp->get_popup_base_transform(); - if (!vp->get_visible_rect().has_point(xform.xform_inv(p_pos))) { + if (!vp->get_visible_rect().has_point(xform.affine_inverse().xform_inv(p_pos))) { return; } }