@galacean/effects 1.6.5 → 1.6.6

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/alipay.js CHANGED
@@ -20814,18 +20814,20 @@ var TextLoader = /** @class */ (function (_super) {
20814
20814
  };
20815
20815
  TextLoader.prototype.onCompositionUpdate = function (composition, dt) {
20816
20816
  this.addItems.forEach(function (item) {
20817
- var _a, _b, _c;
20817
+ var textMesh = item.content.mesh;
20818
20818
  if (!item.contentVisible) {
20819
- (_a = item.content.mesh) === null || _a === void 0 ? void 0 : _a.mesh.setVisible(false);
20819
+ textMesh === null || textMesh === void 0 ? void 0 : textMesh.mesh.setVisible(false);
20820
20820
  return;
20821
20821
  }
20822
20822
  else {
20823
- (_b = item.content.mesh) === null || _b === void 0 ? void 0 : _b.mesh.setVisible(true);
20823
+ textMesh === null || textMesh === void 0 ? void 0 : textMesh.mesh.setVisible(true);
20824
20824
  }
20825
20825
  item.content.updateTexture();
20826
- if (!item.content.ended && item.content.mesh) {
20827
- item.content.mesh.updateItem(item.content);
20828
- (_c = item.content.mesh) === null || _c === void 0 ? void 0 : _c.applyChange();
20826
+ if (!item.content.ended &&
20827
+ textMesh &&
20828
+ !textMesh.mesh.isDestroyed) {
20829
+ textMesh.updateItem(item.content);
20830
+ textMesh.applyChange();
20829
20831
  }
20830
20832
  });
20831
20833
  };
@@ -31034,7 +31036,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
31034
31036
  Engine.create = function (gl) {
31035
31037
  return new GLEngine(gl);
31036
31038
  };
31037
- var version = "1.6.5";
31039
+ var version = "1.6.6";
31038
31040
  logger.info('player version: ' + version);
31039
31041
 
31040
31042
  exports.AbstractPlugin = AbstractPlugin;