@mml-io/mml-web-client 0.0.0-experimental-8fd4bff-20250306 → 0.0.0-experimental-c672970-20250311

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/build/index.js CHANGED
@@ -97901,6 +97901,22 @@ void main() {
97901
97901
  });
97902
97902
  }
97903
97903
  setAnimEnabled() {
97904
+ if (this.model.props.animEnabled) {
97905
+ if (this.animState && !this.animState.appliedAnimation) {
97906
+ for (const [attachment] of this.attachments) {
97907
+ this.registerAttachment(attachment);
97908
+ }
97909
+ this.playAnimation(this.animState.currentAnimationClip);
97910
+ }
97911
+ } else if (!this.model.props.animEnabled) {
97912
+ for (const [attachment, animState] of this.attachments) {
97913
+ if (animState) {
97914
+ animState.animationMixer.stopAllAction();
97915
+ }
97916
+ this.attachments.set(attachment, null);
97917
+ this.model.getContainer().add(attachment.getContainer());
97918
+ }
97919
+ }
97904
97920
  }
97905
97921
  setAnimLoop() {
97906
97922
  }