From 10fb67a79c1365ca1b2e132c7aa02a2861436d1c Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sun, 27 Apr 2014 11:10:22 +0200 Subject: [PATCH] Fixed skeletons being flipped when using the same atlas. --- spine-unity/Assets/Spine/AtlasAsset.cs | 1 + spine-unity/Assets/Spine/SkeletonDataAsset.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/AtlasAsset.cs b/spine-unity/Assets/Spine/AtlasAsset.cs index 76dc0d48c..c10b2b839 100644 --- a/spine-unity/Assets/Spine/AtlasAsset.cs +++ b/spine-unity/Assets/Spine/AtlasAsset.cs @@ -62,6 +62,7 @@ public class AtlasAsset : ScriptableObject { try { atlas = new Atlas(new StringReader(atlasFile.text), "", new MaterialsTextureLoader(this)); + atlas.FlipV(); return atlas; } catch (Exception ex) { Debug.LogError("Error reading atlas file for atlas asset: " + name + "\n" + ex.Message + "\n" + ex.StackTrace, this); diff --git a/spine-unity/Assets/Spine/SkeletonDataAsset.cs b/spine-unity/Assets/Spine/SkeletonDataAsset.cs index bb7486d82..8512c681e 100644 --- a/spine-unity/Assets/Spine/SkeletonDataAsset.cs +++ b/spine-unity/Assets/Spine/SkeletonDataAsset.cs @@ -73,7 +73,6 @@ public class SkeletonDataAsset : ScriptableObject { if (skeletonData != null) return skeletonData; - atlas.FlipV(); SkeletonJson json = new SkeletonJson(atlas); json.Scale = scale; try {