mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
Fix Drag n Drop Transform in main embedding window
This commit is contained in:
parent
b7850bb1e8
commit
529e2279e1
@ -1851,8 +1851,10 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||
}
|
||||
|
||||
if (viewport_under) {
|
||||
Transform2D ai = (viewport_under->get_final_transform().affine_inverse() * viewport_under->_get_input_pre_xform());
|
||||
viewport_pos = ai.xform(viewport_pos);
|
||||
if (viewport_under != this) {
|
||||
Transform2D ai = (viewport_under->get_final_transform().affine_inverse() * viewport_under->_get_input_pre_xform());
|
||||
viewport_pos = ai.xform(viewport_pos);
|
||||
}
|
||||
// Find control under at position.
|
||||
gui.drag_mouse_over = viewport_under->gui_find_control(viewport_pos);
|
||||
if (gui.drag_mouse_over) {
|
||||
|
Loading…
Reference in New Issue
Block a user