فهرست منبع

[libgdx] Limit the number of entries nulled when a skin is cleared.

NathanSweet 6 سال پیش
والد
کامیت
69df56826d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java

+ 1 - 1
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. */