Skip to content

Commit

Permalink
Fix tile selection indicator graphic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Mar 9, 2024
1 parent de33138 commit fe901f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe901f2

Please sign in to comment.