Skip to content

Commit 2de3e2c

Browse files
committed
Use same logic for particle systems than in the main path
1 parent 8268143 commit 2de3e2c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/dev/core/src/Materials/Textures/renderTargetTexture.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,13 +1103,12 @@ export class RenderTargetTexture extends Texture implements IRenderTargetTexture
11031103
const particleSystem = scene.particleSystems[particleIndex];
11041104

11051105
const emitter: any = particleSystem.emitter;
1106-
if (!particleSystem.isStarted() || !emitter || !emitter.position || !emitter.isEnabled()) {
1106+
1107+
if (!particleSystem.isStarted() || !emitter || (emitter.position && !emitter.isEnabled())) {
11071108
continue;
11081109
}
11091110

1110-
if (currentRenderList.indexOf(emitter) >= 0) {
1111-
this._renderingManager.dispatchParticles(particleSystem);
1112-
}
1111+
this._renderingManager.dispatchParticles(particleSystem);
11131112
}
11141113
}
11151114

0 commit comments

Comments
 (0)