Explorar o código

canvas2d use animation too. so stopAnimation when disposed.

KK %!s(int64=8) %!d(string=hai) anos
pai
achega
6aecf9b5a1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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) {