@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/miniprogram.js
CHANGED
|
@@ -30361,6 +30361,10 @@ exports.ParticleStopMode = void 0;
|
|
|
30361
30361
|
if (!this._supportInstancedArrays) {
|
|
30362
30362
|
return;
|
|
30363
30363
|
}
|
|
30364
|
+
// Don't need to render when no particles
|
|
30365
|
+
if (!this.generator._getAliveParticleCount()) {
|
|
30366
|
+
return;
|
|
30367
|
+
}
|
|
30364
30368
|
Renderer1.prototype._prepareRender.call(this, context);
|
|
30365
30369
|
};
|
|
30366
30370
|
/**
|
|
@@ -32722,7 +32726,8 @@ __decorate([
|
|
|
32722
32726
|
*/ _proto._emit = function _emit(time, count) {
|
|
32723
32727
|
if (this.emission.enabled) {
|
|
32724
32728
|
// Wait the existing particles to be retired
|
|
32725
|
-
|
|
32729
|
+
var notRetireParticleCount = this._getNotRetiredParticleCount();
|
|
32730
|
+
if (notRetireParticleCount >= this.main.maxParticles) {
|
|
32726
32731
|
return;
|
|
32727
32732
|
}
|
|
32728
32733
|
var position = ParticleGenerator._tempVector30;
|
package/dist/module.js
CHANGED
|
@@ -30356,6 +30356,10 @@ var ParticleStopMode;
|
|
|
30356
30356
|
if (!this._supportInstancedArrays) {
|
|
30357
30357
|
return;
|
|
30358
30358
|
}
|
|
30359
|
+
// Don't need to render when no particles
|
|
30360
|
+
if (!this.generator._getAliveParticleCount()) {
|
|
30361
|
+
return;
|
|
30362
|
+
}
|
|
30359
30363
|
Renderer1.prototype._prepareRender.call(this, context);
|
|
30360
30364
|
};
|
|
30361
30365
|
/**
|
|
@@ -32717,7 +32721,8 @@ __decorate([
|
|
|
32717
32721
|
*/ _proto._emit = function _emit(time, count) {
|
|
32718
32722
|
if (this.emission.enabled) {
|
|
32719
32723
|
// Wait the existing particles to be retired
|
|
32720
|
-
|
|
32724
|
+
var notRetireParticleCount = this._getNotRetiredParticleCount();
|
|
32725
|
+
if (notRetireParticleCount >= this.main.maxParticles) {
|
|
32721
32726
|
return;
|
|
32722
32727
|
}
|
|
32723
32728
|
var position = ParticleGenerator._tempVector30;
|