diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-13 11:32:22 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-13 11:32:22 +0200 |
| commit | 56e34d8d3388432d342b0c4749cfe044367df668 (patch) | |
| tree | 66e8a150d835ead020250bf7e49e03924c0c5207 /editor/draw.cpp | |
| parent | f513266d49ab0c075a3ab3e1f85dee6129cff1de (diff) | |
render other layers with transparency in single-z-layer mode
Diffstat (limited to 'editor/draw.cpp')
| -rw-r--r-- | editor/draw.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index 2944eae6..6ee32738 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -66,7 +66,9 @@ void app::draw_cursor() void app::draw_collision_boxes() { - const auto [z_min, z_max] = get_z_bounds(); + auto [z_min, z_max, z_cur, only] = get_z_bounds(); + if (only) + z_min = z_max = z_cur; const auto [minx, maxx, miny, maxy] = M->get_draw_bounds(); const auto sz = M->window_size(); auto& world = M->world(); |
