@galacean/effects-threejs 2.2.4 → 2.2.5

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/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.2.4
6
+ * Version: v2.2.5
7
7
  */
8
8
 
9
9
  'use strict';
@@ -5787,7 +5787,7 @@ exports.TextureSourceType = void 0;
5787
5787
  _this.finish(url, xhr.status, xhr.response);
5788
5788
  };
5789
5789
  var handleLoad = function() {
5790
- if (xhr.status == 200 || xhr.status == 0) {
5790
+ if (xhr.status == 200) {
5791
5791
  _this.finish(url, 200, xhr.response);
5792
5792
  } else {
5793
5793
  handleError();
@@ -5813,7 +5813,7 @@ exports.TextureSourceType = void 0;
5813
5813
  _proto.finish = function finish(url, status, data) {
5814
5814
  var callbacks = this.callbacks[url];
5815
5815
  delete this.callbacks[url];
5816
- var args = status == 200 || status == 0 ? [
5816
+ var args = status == 200 ? [
5817
5817
  data
5818
5818
  ] : [
5819
5819
  status,
@@ -20770,7 +20770,6 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
20770
20770
  if (options.removeParticle) {
20771
20771
  renderer.removeParticlePoint(pointIndex);
20772
20772
  this.clearPointTrail(pointIndex);
20773
- link.removeNode(node); // TODO: 会多移除一个粒子,为了通过帧对比先保留,等 2.0 合到主分支后移除。
20774
20773
  node.content = [
20775
20774
  0
20776
20775
  ];
@@ -31394,7 +31393,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
31394
31393
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
31395
31394
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
31396
31395
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
31397
- var version$1 = "2.2.4";
31396
+ var version$1 = "2.2.5";
31398
31397
  logger.info("Core version: " + version$1 + ".");
31399
31398
 
31400
31399
  var _obj;
@@ -33027,7 +33026,7 @@ setMaxSpriteMeshItemCount(8);
33027
33026
  */ Mesh.create = function(engine, props) {
33028
33027
  return new ThreeMesh(engine, props);
33029
33028
  };
33030
- var version = "2.2.4";
33029
+ var version = "2.2.5";
33031
33030
  logger.info("THREEJS plugin version: " + version + ".");
33032
33031
 
33033
33032
  exports.AbstractPlugin = AbstractPlugin;