From 5fea9192f20daf706bbbcba519af65568fa62cc6 Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 28 May 2025 16:32:12 -0400 Subject: [PATCH] Use texture region bounds (#991) --- source/MonoGame.Extended/Particles/ParticleEffectWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/MonoGame.Extended/Particles/ParticleEffectWriter.cs b/source/MonoGame.Extended/Particles/ParticleEffectWriter.cs index f950b125..1013cd0b 100644 --- a/source/MonoGame.Extended/Particles/ParticleEffectWriter.cs +++ b/source/MonoGame.Extended/Particles/ParticleEffectWriter.cs @@ -139,7 +139,7 @@ public class ParticleEffectWriter : IDisposable private void WriteTexture2DRegion(Texture2DRegion region) { _writer.WriteAttributeString(nameof(Texture2DRegion.Texture.Name), region.Texture.Name); - _writer.WriteAttributeRectangle(nameof(Texture2DRegion.Texture.Bounds), region.Texture.Bounds); + _writer.WriteAttributeRectangle(nameof(Texture2DRegion.Bounds), region.Bounds); }