mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-18 15:27:17 +01:00
Fix position of popups in LayeredTileSetAtlasSourceEditor.
This commit is contained in:
parent
fd5ed33a7b
commit
d38e9256b6
@ -1574,12 +1574,14 @@ void LayeredTileSetAtlasSourceEditor::_end_dragging() {
|
|||||||
// We have a tile.
|
// We have a tile.
|
||||||
menu_option_coords = selected.tile;
|
menu_option_coords = selected.tile;
|
||||||
menu_option_alternative = 0;
|
menu_option_alternative = 0;
|
||||||
base_tile_popup_menu->popup(Rect2i(get_global_transform().xform(get_local_mouse_position()), Size2i()));
|
base_tile_popup_menu->set_position(get_global_transform().xform(get_local_mouse_position()));
|
||||||
|
base_tile_popup_menu->popup();
|
||||||
} else if (hovered_base_tile_coords != LayeredTileSetSource::INVALID_ATLAS_COORDS) {
|
} else if (hovered_base_tile_coords != LayeredTileSetSource::INVALID_ATLAS_COORDS) {
|
||||||
// We don't have a tile, but can create one.
|
// We don't have a tile, but can create one.
|
||||||
menu_option_coords = hovered_base_tile_coords;
|
menu_option_coords = hovered_base_tile_coords;
|
||||||
menu_option_alternative = LayeredTileSetSource::INVALID_TILE_ALTERNATIVE;
|
menu_option_alternative = LayeredTileSetSource::INVALID_TILE_ALTERNATIVE;
|
||||||
empty_base_tile_popup_menu->popup(Rect2i(get_global_transform().xform(get_local_mouse_position()), Size2i()));
|
empty_base_tile_popup_menu->set_position(get_global_transform().xform(get_local_mouse_position()));
|
||||||
|
empty_base_tile_popup_menu->popup();
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case DRAG_TYPE_RESIZE_TOP_LEFT:
|
case DRAG_TYPE_RESIZE_TOP_LEFT:
|
||||||
|
Loading…
Reference in New Issue
Block a user