@galacean/effects-threejs 2.6.0-beta.0 → 2.6.0-beta.1

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: v2.6.0-beta.0
6
+ * Version: v2.6.0-beta.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -5606,7 +5606,7 @@ var Skeleton = /*#__PURE__*/ function() {
5606
5606
  };
5607
5607
  _proto.addRecordedProperty = function addRecordedProperty(path, className, property, type) {
5608
5608
  var totalPath = path + className + property;
5609
- if (this.pathToObjectIndex.get(totalPath)) {
5609
+ if (this.pathToObjectIndex.get(totalPath) !== undefined) {
5610
5610
  return;
5611
5611
  }
5612
5612
  var targetBone = this.findTarget(path);
@@ -25496,7 +25496,11 @@ exports.SpriteComponent = /*#__PURE__*/ function(BaseRenderComponent) {
25496
25496
  dy
25497
25497
  ]);
25498
25498
  }
25499
- this.time += dt / 1000;
25499
+ this.time = time + dt / 1000;
25500
+ };
25501
+ _proto.onDisable = function onDisable() {
25502
+ BaseRenderComponent.prototype.onDisable.call(this);
25503
+ this.time = 0;
25500
25504
  };
25501
25505
  _proto.onDestroy = function onDestroy() {
25502
25506
  var texture = this.renderer.texture;
@@ -31068,7 +31072,7 @@ function getStandardSpriteContent(sprite, transform) {
31068
31072
  return ret;
31069
31073
  }
31070
31074
 
31071
- var version$2 = "2.6.0-beta.0";
31075
+ var version$2 = "2.6.0-beta.1";
31072
31076
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
31073
31077
  var standardVersion = /^(\d+)\.(\d+)$/;
31074
31078
  var reverseParticle = false;
@@ -34318,7 +34322,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
34318
34322
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
34319
34323
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
34320
34324
  registerPlugin("interact", InteractLoader, exports.VFXItem);
34321
- var version$1 = "2.6.0-beta.0";
34325
+ var version$1 = "2.6.0-beta.1";
34322
34326
  logger.info("Core version: " + version$1 + ".");
34323
34327
 
34324
34328
  var _obj;
@@ -35923,7 +35927,7 @@ setMaxSpriteMeshItemCount(8);
35923
35927
  */ Mesh.create = function(engine, props) {
35924
35928
  return new ThreeMesh(engine, props);
35925
35929
  };
35926
- var version = "2.6.0-beta.0";
35930
+ var version = "2.6.0-beta.1";
35927
35931
  logger.info("THREEJS plugin version: " + version + ".");
35928
35932
 
35929
35933
  exports.AbstractPlugin = AbstractPlugin;