mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Fixed skeletons being flipped when using the same atlas.
This commit is contained in:
parent
6983ec6fd3
commit
10fb67a79c
@ -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);
|
||||
|
||||
@ -73,7 +73,6 @@ public class SkeletonDataAsset : ScriptableObject {
|
||||
if (skeletonData != null)
|
||||
return skeletonData;
|
||||
|
||||
atlas.FlipV();
|
||||
SkeletonJson json = new SkeletonJson(atlas);
|
||||
json.Scale = scale;
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user