You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Added simple check to viewport, if matrix32 is invesile (https://github.com/godotengine/godot/issues/6296).
(cherry picked from commit 8671836b76)
This commit is contained in:
committed by
Rémi Verschelde
parent
a139c7afe6
commit
ce1138cb02
@@ -1705,6 +1705,9 @@ Control* Viewport::_gui_find_control_at_pos(CanvasItem* p_node,const Point2& p_g
|
||||
}
|
||||
|
||||
Matrix32 matrix = p_xform * p_node->get_transform();
|
||||
// matrix.basis_determinant() == 0.0f implies that node does not exist on scene
|
||||
if(matrix.basis_determinant() == 0.0f)
|
||||
return NULL;
|
||||
|
||||
if (!c || !c->clips_input() || c->has_point(matrix.affine_inverse().xform(p_global))) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user