From 69df56826dfa480c564541f3e3dde4427475863c Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Mon, 29 Oct 2018 17:11:50 +0100 Subject: [PATCH] [libgdx] Limit the number of entries nulled when a skin is cleared. --- .../spine-libgdx/src/com/esotericsoftware/spine/Skin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java index 3d571664e..ecff30cf0 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java @@ -94,7 +94,7 @@ public class Skin { public void clear () { for (Key key : attachments.keys()) keyPool.free(key); - attachments.clear(); + attachments.clear(1024); } /** The skin's name, which is unique within the skeleton. */