From 78d5561db31a1cb51882a8c3a0fdd409ed386a51 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:01:23 +1100 Subject: [PATCH] Fix animated particle discrepancies vs vanilla --- source/game/StarAnimation.cpp | 2 +- source/rendering/StarWorldPainter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/game/StarAnimation.cpp b/source/game/StarAnimation.cpp index 9cbf88a..09da400 100644 --- a/source/game/StarAnimation.cpp +++ b/source/game/StarAnimation.cpp @@ -70,7 +70,7 @@ Drawable Animation::drawable(float pixelSize) const { baseFrame += ":" + toString(m_frame); Drawable drawable = Drawable::makeImage(std::move(baseFrame), pixelSize, m_centered, m_offset); - drawable.imagePart().addDirectivesGroup(m_processing); + drawable.imagePart().addDirectivesGroup(m_processing, true); drawable.rotate(m_angle); drawable.color = m_color; return drawable; diff --git a/source/rendering/StarWorldPainter.cpp b/source/rendering/StarWorldPainter.cpp index 5d33182..be28119 100644 --- a/source/rendering/StarWorldPainter.cpp +++ b/source/rendering/StarWorldPainter.cpp @@ -219,7 +219,7 @@ void WorldPainter::renderParticles(WorldRenderData& renderData, Particle::Layer if (particle.flip && particle.flippable) drawable.scale(Vec2F(-1, 1)); - if (drawable.isImage()) + if (drawable.isImage() && particle.type != Particle::Type::Animated) drawable.imagePart().addDirectivesGroup(particle.directives, true); drawable.fullbright = particle.fullbright; drawable.color = particle.color;