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 {
|
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);
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user