@galacean/effects-core 2.1.1 → 2.1.2

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.1.1
6
+ * Version: v2.1.2
7
7
  */
8
8
 
9
9
  'use strict';
@@ -16638,7 +16638,6 @@ exports.InteractComponent = /*#__PURE__*/ function(RendererComponent) {
16638
16638
  };
16639
16639
  _proto.render = function render(renderer) {
16640
16640
  if (this.previewContent) {
16641
- this.previewContent.mesh.worldMatrix = this.transform.getWorldMatrix();
16642
16641
  this.previewContent.mesh.render(renderer);
16643
16642
  }
16644
16643
  };
@@ -28778,9 +28777,7 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
28778
28777
  * @since 2.0.0
28779
28778
  * @param visible - 是否可见
28780
28779
  */ _proto.setVisible = function setVisible(visible) {
28781
- this.items.forEach(function(item) {
28782
- item.setActive(visible);
28783
- });
28780
+ this.rootItem.setVisible(visible);
28784
28781
  };
28785
28782
  /**
28786
28783
  * 获取合成的动画速度
@@ -31381,7 +31378,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
31381
31378
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
31382
31379
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
31383
31380
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
31384
- var version = "2.1.1";
31381
+ var version = "2.1.2";
31385
31382
  logger.info("Core version: " + version + ".");
31386
31383
 
31387
31384
  exports.AbstractPlugin = AbstractPlugin;