@meta2d/core 1.0.39 → 1.0.41

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/src/core.js CHANGED
@@ -481,6 +481,13 @@ var Meta2d = /** @class */ (function () {
481
481
  console.warn('[meta2d] SetProps value is not an object');
482
482
  };
483
483
  this.events[EventAction.StartAnimate] = function (pen, e) {
484
+ var _pen = pen;
485
+ if (e.value) {
486
+ _pen = _this.findOne(e.value);
487
+ }
488
+ if (_this.store.animates.has(_pen) && !_pen.calculative.pause) {
489
+ return;
490
+ }
484
491
  if (e.targetType && e.params) {
485
492
  _this.startAnimate(e.value || [pen], e.params);
486
493
  return;