@galacean/effects-core 2.2.3 → 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 core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.2.3
6
+ * Version: v2.2.5
7
7
  */
8
8
 
9
9
  'use strict';
@@ -5765,7 +5765,7 @@ exports.TextureSourceType = void 0;
5765
5765
  _this.finish(url, xhr.status, xhr.response);
5766
5766
  };
5767
5767
  var handleLoad = function() {
5768
- if (xhr.status == 200 || xhr.status == 0) {
5768
+ if (xhr.status == 200) {
5769
5769
  _this.finish(url, 200, xhr.response);
5770
5770
  } else {
5771
5771
  handleError();
@@ -5791,7 +5791,7 @@ exports.TextureSourceType = void 0;
5791
5791
  _proto.finish = function finish(url, status, data) {
5792
5792
  var callbacks = this.callbacks[url];
5793
5793
  delete this.callbacks[url];
5794
- var args = status == 200 || status == 0 ? [
5794
+ var args = status == 200 ? [
5795
5795
  data
5796
5796
  ] : [
5797
5797
  status,
@@ -20748,7 +20748,6 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
20748
20748
  if (options.removeParticle) {
20749
20749
  renderer.removeParticlePoint(pointIndex);
20750
20750
  this.clearPointTrail(pointIndex);
20751
- link.removeNode(node); // TODO: 会多移除一个粒子,为了通过帧对比先保留,等 2.0 合到主分支后移除。
20752
20751
  node.content = [
20753
20752
  0
20754
20753
  ];
@@ -25232,6 +25231,7 @@ var TextComponentBase = /*#__PURE__*/ function() {
25232
25231
  wrapT: glContext.CLAMP_TO_EDGE
25233
25232
  });
25234
25233
  this.renderer.texture = texture;
25234
+ this.material.setTexture("_MainTex", texture);
25235
25235
  this.isDirty = false;
25236
25236
  };
25237
25237
  _proto.getFontDesc = function getFontDesc() {
@@ -31371,7 +31371,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
31371
31371
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
31372
31372
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
31373
31373
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
31374
- var version = "2.2.3";
31374
+ var version = "2.2.5";
31375
31375
  logger.info("Core version: " + version + ".");
31376
31376
 
31377
31377
  exports.AbstractPlugin = AbstractPlugin;