Sfoglia il codice sorgente

[ts][pixi] Empty slotsObject on destroy.

Davide Tantillo 1 anno fa
parent
commit
985dd84027
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      spine-ts/spine-pixi/src/Spine.ts

+ 1 - 0
spine-ts/spine-pixi/src/Spine.ts

@@ -199,6 +199,7 @@ export class Spine extends Container {
 		this.state.clearListeners();
 		this.state.clearListeners();
 		this.debug = undefined;
 		this.debug = undefined;
 		this.meshesCache.clear();
 		this.meshesCache.clear();
+		this.slotsObject.clear();
 		super.destroy(options);
 		super.destroy(options);
 	}
 	}