Fix tile selection indicator graphic.

This commit is contained in:
Relintai 2024-03-09 11:21:59 +01:00
parent de33138e87
commit fe901f22bd

View File

@ -298,7 +298,7 @@ void LayeredTilesEditorUtils::display_tile_set_editor_panel() {
}
void LayeredTilesEditorUtils::draw_selection_rect(CanvasItem *p_ci, const Rect2 &p_rect, const Color &p_color) {
Ref<Texture> selection_texture = EditorNode::get_singleton()->get_editor_theme()->get_icon("TileSelection", "EditorIcons");
Ref<Texture> selection_texture = EditorNode::get_singleton()->get_editor_theme()->get_icon("LayeredTileSelection", "EditorIcons");
real_t scale = p_ci->get_global_transform().get_scale().x * 0.5;
p_ci->draw_set_transform(p_rect.position, 0, Vector2(1, 1) / scale);