fix particle trail error (#4323)

This commit is contained in:
zxg0622
2019-04-26 18:40:23 +08:00
committed by Weiliang Wang
parent 41c57d1710
commit 2334ac598e
@@ -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();
}
}