فهرست منبع

canvas2d use animation too. so stopAnimation when disposed.

KK 8 سال پیش
والد
کامیت
6aecf9b5a1
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      canvas2D/src/Engine/babylon.prim2dBase.ts

+ 1 - 0
canvas2D/src/Engine/babylon.prim2dBase.ts

@@ -3134,6 +3134,7 @@
                 this._actionManager.dispose();
                 this._actionManager = null;
             }
+            this.owner.scene.stopAnimation(this);
 
             // If there's a parent, remove this object from its parent list
             if (this._parent) {