Преглед на файлове

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) {