@luminocity/lemonate-engine 26.3.1 → 26.3.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.
@@ -41290,7 +41290,7 @@ class Item extends EventEmitter {
41290
41290
  }
41291
41291
  }
41292
41292
 
41293
- var engine$1 = "26.3.1";
41293
+ var engine$1 = "26.3.2";
41294
41294
  var bullet = "3.26";
41295
41295
  var lua = "5.4.3";
41296
41296
  var packageVersionInfo = {
@@ -107379,6 +107379,15 @@ class SgMesh extends SgPhysicsItem {
107379
107379
  this.setAnimationPropertiesToField();
107380
107380
  }
107381
107381
  }
107382
+ else {
107383
+ this._clearAnimations();
107384
+ }
107385
+ }
107386
+ _clearAnimations() {
107387
+ this.mixer = undefined;
107388
+ this.animations = [];
107389
+ this.activeTweens = undefined;
107390
+ this.setFieldValue("Animations", []);
107382
107391
  }
107383
107392
  isAnimated() {
107384
107393
  return Boolean(this.mixer);
@@ -107614,9 +107623,7 @@ class SgMesh extends SgPhysicsItem {
107614
107623
  if (this.meshItem) {
107615
107624
  this._removeMesh();
107616
107625
  this.animatableMesh = undefined;
107617
- this.animations = [];
107618
- this.activeTweens = undefined;
107619
- this.mixer = undefined;
107626
+ this._clearAnimations();
107620
107627
  if (this.loadedMeshItem) {
107621
107628
  this.engine.loadingManager.unload(this.referenceId, this.loadedMeshItem);
107622
107629
  this.loadedMeshItem = undefined;