From fd9298ef43136fa89dab034096690a08027ebf44 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 16 Mar 2023 08:30:41 +0100 Subject: a --- draw/anim.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'draw') diff --git a/draw/anim.cpp b/draw/anim.cpp index 47d84a97..4af20b8f 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -79,11 +79,13 @@ void anim_mesh::draw(tile_shader& shader, chunk& c) auto& atlas = *e.atlas; if (last && &atlas != last.atlas) { + //Debug{} << "draw-static" << last.atlas->name() << e.ordinal() << Vector2i(e.coord.local()); do_draw(last.run_from, i, last.atlas); last = nullptr; } if (e.is_dynamic()) { + //Debug{} << "draw-dyn" << e.atlas->name() << e.ordinal() << Vector2i(e.coord.local()); draw(shader, atlas, e.r, e.frame, e.coord.local(), e.offset, tile_shader::scenery_depth_offset); last = nullptr; } @@ -95,7 +97,12 @@ void anim_mesh::draw(tile_shader& shader, chunk& c) } } if (last) + { + //Debug{} << "draw-last" << last.atlas->name() << es[es.size()-1]->ordinal() << Vector2i(es[es.size()-1]->coord.local()); do_draw(last.run_from, i, last.atlas); + } + + //Debug{} << "--" << i << "--"; //#define FM_DEBUG_DRAW_COUNT #ifdef FM_DEBUG_DRAW_COUNT -- cgit v1.2.3