mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix particle trail error (#4323)
This commit is contained in:
@@ -226,6 +226,7 @@ export default class TrailModule {
|
||||
this._trailNum = ps.startLifetime.getMax() * this.lifeTime.getMax() * 60 * ps.rateOverTime.getMax() * ps.duration;
|
||||
this._trailSegments = new Pool(() => new TrailSegment(ps.startLifetime.getMax() * this.lifeTime.getMax() * 60), Math.ceil(ps.rateOverTime.getMax() * ps.duration));
|
||||
if (this._enable) {
|
||||
this.enable = this._enable;
|
||||
this._updateMaterial();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user