diff --git a/src/particles/ParticleContainer.js b/src/particles/ParticleContainer.js index e6a0ed5..42048a8 100644 --- a/src/particles/ParticleContainer.js +++ b/src/particles/ParticleContainer.js @@ -237,7 +237,7 @@ continue; } - const frame = child.texture.frame; + const frame = child._texture.frame; context.globalAlpha = this.worldAlpha * child.alpha; @@ -305,10 +305,10 @@ finalHeight = frame.height; } - const resolution = child.texture.baseTexture.resolution; + const resolution = child._texture.baseTexture.resolution; context.drawImage( - child.texture.baseTexture.source, + child._texture.baseTexture.source, frame.x * resolution, frame.y * resolution, frame.width * resolution,