mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-22 00:57:17 +01:00
Fix tile selection indicator graphic.
This commit is contained in:
parent
de33138e87
commit
fe901f22bd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user