summaryrefslogtreecommitdiffhomepage
path: root/draw/anim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'draw/anim.cpp')
-rw-r--r--draw/anim.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp
index 558dd197..82f0d746 100644
--- a/draw/anim.cpp
+++ b/draw/anim.cpp
@@ -26,7 +26,8 @@ void anim_mesh::draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::si
{
const auto center = Vector3(xy.x, xy.y, 0.f) * TILE_SIZE;
const auto pos = atlas.frame_quad(center, r, frame);
- const auto texcoords = atlas.texcoords_for_frame(r, frame);
+ const auto& g = atlas.group(r);
+ const auto texcoords = atlas.texcoords_for_frame(r, frame, !g.mirror_from.isEmpty());
const float depth = tile_shader::depth_value(xy, .25f);
quad_data array;
for (std::size_t i = 0; i < 4; i++)