diff options
-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() |