Przeglądaj źródła

canvas2d use animation too. so stopAnimation when disposed.

KK 8 lat temu
rodzic
commit
6aecf9b5a1
1 zmienionych plików z 1 dodań i 0 usunięć
  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) {