浏览代码

[libgdx] Made Skin lookup object non-static.

closes #911
NathanSweet 8 年之前
父节点
当前提交
ac72220dc0
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java

+ 1 - 2
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java

@@ -41,10 +41,9 @@ import com.esotericsoftware.spine.attachments.Attachment;
  * See SkeletonData {@link SkeletonData#defaultSkin}, Skeleton {@link Skeleton#skin}, and
  * <a href="http://esotericsoftware.com/spine-runtime-skins">Runtime skins</a> in the Spine Runtimes Guide. */
 public class Skin {
-	static private final Key lookup = new Key();
-
 	final String name;
 	final ObjectMap<Key, Attachment> attachments = new ObjectMap();
+	private final Key lookup = new Key();
 	final Pool<Key> keyPool = new Pool(64) {
 		protected Object newObject () {
 			return new Key();