@galacean/effects-threejs 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/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: v1.2.5
6
+ * Version: v1.2.6
7
7
  */
8
8
 
9
9
  'use strict';
@@ -14966,7 +14966,6 @@ var SpriteItem = /** @class */ (function (_super) {
14966
14966
  ret.texOffset = [0, 0, 1, 1];
14967
14967
  }
14968
14968
  ret.visible = this.vfxItem.contentVisible;
14969
- // 图层元素作为父节点时,除了k的大小变换,自身的尺寸也需要传递给子元素,子元素可以通过startSize读取
14970
14969
  ret.startSize = this.startSize;
14971
14970
  return ret;
14972
14971
  };
@@ -15064,7 +15063,9 @@ var SpriteVFXItem = /** @class */ (function (_super) {
15064
15063
  };
15065
15064
  SpriteVFXItem.prototype.doCreateContent = function (composition) {
15066
15065
  var emptyTexture = composition.getRendererOptions().emptyTexture;
15067
- return new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
15066
+ var content = new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
15067
+ content.getRenderData(0, true);
15068
+ return content;
15068
15069
  };
15069
15070
  SpriteVFXItem.prototype.createWireframeMesh = function (item, color) {
15070
15071
  var spMesh = new SpriteMesh(this.composition.getEngine(), __assign$1({ wireframe: true }, item.renderInfo), this.composition);
@@ -26946,7 +26947,7 @@ Geometry.create = function (engine, options) {
26946
26947
  Mesh.create = function (engine, props) {
26947
26948
  return new ThreeMesh(engine, props);
26948
26949
  };
26949
- var version = "1.2.5";
26950
+ var version = "1.2.6";
26950
26951
  logger.info('THREEJS plugin version: ' + version);
26951
26952
 
26952
26953
  exports.AbstractPlugin = AbstractPlugin;