@galacean/effects 1.2.5 → 1.2.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/weapp.js CHANGED
@@ -14938,7 +14938,6 @@ var SpriteItem = /** @class */ (function (_super) {
14938
14938
  ret.texOffset = [0, 0, 1, 1];
14939
14939
  }
14940
14940
  ret.visible = this.vfxItem.contentVisible;
14941
- // 图层元素作为父节点时,除了k的大小变换,自身的尺寸也需要传递给子元素,子元素可以通过startSize读取
14942
14941
  ret.startSize = this.startSize;
14943
14942
  return ret;
14944
14943
  };
@@ -15036,7 +15035,9 @@ var SpriteVFXItem = /** @class */ (function (_super) {
15036
15035
  };
15037
15036
  SpriteVFXItem.prototype.doCreateContent = function (composition) {
15038
15037
  var emptyTexture = composition.getRendererOptions().emptyTexture;
15039
- return new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
15038
+ var content = new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
15039
+ content.getRenderData(0, true);
15040
+ return content;
15040
15041
  };
15041
15042
  SpriteVFXItem.prototype.createWireframeMesh = function (item, color) {
15042
15043
  var spMesh = new SpriteMesh(this.composition.getEngine(), __assign$1({ wireframe: true }, item.renderInfo), this.composition);
@@ -30448,7 +30449,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
30448
30449
  Engine.create = function (gl) {
30449
30450
  return new GLEngine(gl);
30450
30451
  };
30451
- var version = "1.2.5";
30452
+ var version = "1.2.6";
30452
30453
  logger.info('player version: ' + version);
30453
30454
 
30454
30455
  exports.AbstractPlugin = AbstractPlugin;