@galacean/engine-core 1.3.21 → 1.3.22
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 -5
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +6 -5
- package/dist/module.js +6 -5
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -30360,10 +30360,6 @@ 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
|
-
}
|
|
30367
30363
|
Renderer1.prototype._prepareRender.call(this, context);
|
|
30368
30364
|
};
|
|
30369
30365
|
/**
|
|
@@ -30409,7 +30405,12 @@ exports.ParticleStopMode = void 0;
|
|
|
30409
30405
|
};
|
|
30410
30406
|
_proto._render = function _render(context) {
|
|
30411
30407
|
var generator = this.generator;
|
|
30412
|
-
|
|
30408
|
+
// Don't need to render when no particles
|
|
30409
|
+
var aliveParticleCount = generator._getAliveParticleCount();
|
|
30410
|
+
if (!aliveParticleCount) {
|
|
30411
|
+
return;
|
|
30412
|
+
}
|
|
30413
|
+
generator._primitive.instanceCount = aliveParticleCount;
|
|
30413
30414
|
var material = this.getMaterial();
|
|
30414
30415
|
if (!material) {
|
|
30415
30416
|
return;
|