@galacean/engine 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/browser.js CHANGED
@@ -34974,10 +34974,6 @@
34974
34974
  if (!this._supportInstancedArrays) {
34975
34975
  return;
34976
34976
  }
34977
- // Don't need to render when no particles
34978
- if (!this.generator._getAliveParticleCount()) {
34979
- return;
34980
- }
34981
34977
  Renderer1.prototype._prepareRender.call(this, context);
34982
34978
  };
34983
34979
  /**
@@ -35023,7 +35019,12 @@
35023
35019
  };
35024
35020
  _proto._render = function _render(context) {
35025
35021
  var generator = this.generator;
35026
- generator._primitive.instanceCount = generator._getAliveParticleCount();
35022
+ // Don't need to render when no particles
35023
+ var aliveParticleCount = generator._getAliveParticleCount();
35024
+ if (!aliveParticleCount) {
35025
+ return;
35026
+ }
35027
+ generator._primitive.instanceCount = aliveParticleCount;
35027
35028
  var material = this.getMaterial();
35028
35029
  if (!material) {
35029
35030
  return;
@@ -48428,7 +48429,7 @@
48428
48429
  ], EXT_texture_webp);
48429
48430
 
48430
48431
  //@ts-ignore
48431
- var version = "1.3.21";
48432
+ var version = "1.3.22";
48432
48433
  console.log("Galacean engine version: " + version);
48433
48434
  for(var key in CoreObjects){
48434
48435
  Loader.registerClass(key, CoreObjects[key]);