@galacean/engine-core 1.3.20 → 1.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +6 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +6 -1
- package/dist/module.js +6 -1
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -30360,6 +30360,10 @@ exports.ParticleStopMode = void 0;
|
|
|
30360
30360
|
if (!this._supportInstancedArrays) {
|
|
30361
30361
|
return;
|
|
30362
30362
|
}
|
|
30363
|
+
// Don't need to render when no particles
|
|
30364
|
+
if (!this.generator._getAliveParticleCount()) {
|
|
30365
|
+
return;
|
|
30366
|
+
}
|
|
30363
30367
|
Renderer1.prototype._prepareRender.call(this, context);
|
|
30364
30368
|
};
|
|
30365
30369
|
/**
|
|
@@ -32721,7 +32725,8 @@ __decorate([
|
|
|
32721
32725
|
*/ _proto._emit = function _emit(time, count) {
|
|
32722
32726
|
if (this.emission.enabled) {
|
|
32723
32727
|
// Wait the existing particles to be retired
|
|
32724
|
-
|
|
32728
|
+
var notRetireParticleCount = this._getNotRetiredParticleCount();
|
|
32729
|
+
if (notRetireParticleCount >= this.main.maxParticles) {
|
|
32725
32730
|
return;
|
|
32726
32731
|
}
|
|
32727
32732
|
var position = ParticleGenerator._tempVector30;
|