Fix popup menu position.

This commit is contained in:
Relintai 2024-03-13 07:35:13 +01:00
parent 2f87cf8230
commit 7b72d180a5

View File

@ -2028,7 +2028,8 @@ void LayeredTileSetAtlasSourceEditor::_tile_alternatives_control_gui_input(const
selected = selection.front()->get();
menu_option_coords = selected.tile;
menu_option_alternative = selected.alternative;
alternative_tile_popup_menu->popup(Rect2i(get_global_transform().xform(get_local_mouse_position()), Size2i()));
alternative_tile_popup_menu->set_position(get_global_transform().xform(get_local_mouse_position()));
alternative_tile_popup_menu->popup();
}
}