Skip to content

Commit c78e576

Browse files
committed
Fix error when setting updateInAnimate to false
1 parent 8268143 commit c78e576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/core/src/Particles/gpuParticleSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ export class GPUParticleSystem extends BaseParticleSystem implements IDisposable
15401540

15411541
/** @internal */
15421542
public _update(emitterWM?: Matrix): void {
1543-
if (!this.emitter) {
1543+
if (!this.emitter || !this._targetBuffer) {
15441544
return;
15451545
}
15461546

0 commit comments

Comments
 (0)