Fixed skeletons being flipped when using the same atlas.

This commit is contained in:
NathanSweet 2014-04-27 11:10:22 +02:00
parent 6983ec6fd3
commit 10fb67a79c
2 changed files with 1 additions and 1 deletions

View File

@ -62,6 +62,7 @@ public class AtlasAsset : ScriptableObject {
try { try {
atlas = new Atlas(new StringReader(atlasFile.text), "", new MaterialsTextureLoader(this)); atlas = new Atlas(new StringReader(atlasFile.text), "", new MaterialsTextureLoader(this));
atlas.FlipV();
return atlas; return atlas;
} catch (Exception ex) { } catch (Exception ex) {
Debug.LogError("Error reading atlas file for atlas asset: " + name + "\n" + ex.Message + "\n" + ex.StackTrace, this); Debug.LogError("Error reading atlas file for atlas asset: " + name + "\n" + ex.Message + "\n" + ex.StackTrace, this);

View File

@ -73,7 +73,6 @@ public class SkeletonDataAsset : ScriptableObject {
if (skeletonData != null) if (skeletonData != null)
return skeletonData; return skeletonData;
atlas.FlipV();
SkeletonJson json = new SkeletonJson(atlas); SkeletonJson json = new SkeletonJson(atlas);
json.Scale = scale; json.Scale = scale;
try { try {