Преглед изворни кода

[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();