Browse Source

[ts][pixi] Empty slotsObject on destroy.

Davide Tantillo 1 year ago
parent
commit
985dd84027
1 changed files with 1 additions and 0 deletions
  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.debug = undefined;
 		this.meshesCache.clear();
+		this.slotsObject.clear();
 		super.destroy(options);
 	}