Fix animated particle discrepancies vs vanilla

This commit is contained in:
Kae 2024-03-25 15:01:23 +11:00
parent 84a2d8f7f8
commit 78d5561db3
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;