mirror of https://github.com/godotengine/godot
Merge pull request #102390 from stuartcarnie/102388/fix_selection
Editor: Fix node selection within SubViewports using size 2d override
This commit is contained in:
commit
ff0049e0d0
|
|
@ -623,7 +623,7 @@ void CanvasItemEditor::_find_canvas_items_at_pos(const Point2 &p_pos, Node *p_no
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
xform = vp->get_popup_base_transform();
|
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(p_pos))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -726,7 +726,7 @@ void CanvasItemEditor::_find_canvas_items_in_rect(const Rect2 &p_rect, Node *p_n
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
xform = vp->get_popup_base_transform();
|
xform = vp->get_popup_base_transform();
|
||||||
if (!vp->get_visible_rect().intersects(xform.xform_inv(p_rect))) {
|
if (!vp->get_visible_rect().intersects(xform.affine_inverse().xform(p_rect))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue