diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-07 15:54:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-07 15:54:43 +0200 |
commit | b95695fb927e0303d0203e401cca028d1fd4ee5e (patch) | |
tree | 193de2ea02d7f299bb4c2eddc376562e1082a494 /editor/draw.cpp | |
parent | fa9cfa25a3090b8ed586b937cb0148bbb7f09b0e (diff) |
e
Diffstat (limited to 'editor/draw.cpp')
-rw-r--r-- | editor/draw.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index d0aa82b8..7fd3add3 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -38,6 +38,8 @@ void app::draw_cursor() else return; + shader.set_tint({1, 0, 0, 1}); + if (!cursor.in_imgui) { const auto draw = [&, pos = tile](auto& mesh, const auto& size) { @@ -45,8 +47,6 @@ void app::draw_cursor() mesh.draw(shader, {center, size, LINE_WIDTH}); }; - shader.set_tint({1, 0, 0, 1}); - if (const auto* ed = _editor->current_ground_editor()) { if (!ed->is_anything_selected()) @@ -96,9 +96,9 @@ void app::draw_cursor() anim_mesh.draw(shader, *atlas, rotation::N, 0, Vector3(pos), 1); } } - - shader.set_tint({1, 1, 1, 1}); } + + shader.set_tint({1, 1, 1, 1}); } void app::draw_collision_boxes() |