mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Clean up.
This commit is contained in:
parent
22b2086f39
commit
14aeb49650
@ -38,7 +38,7 @@ namespace Spine {
|
||||
internal BoneData data;
|
||||
internal Skeleton skeleton;
|
||||
internal Bone parent;
|
||||
internal List<Bone> children;
|
||||
internal List<Bone> children = new List<Bone>();
|
||||
internal float x, y, rotation, rotationIK, scaleX, scaleY;
|
||||
internal bool flipX, flipY;
|
||||
internal float m00, m01, m10, m11;
|
||||
@ -79,7 +79,6 @@ namespace Spine {
|
||||
this.data = data;
|
||||
this.skeleton = skeleton;
|
||||
this.parent = parent;
|
||||
this.children = new List<Bone>();
|
||||
SetToSetupPose();
|
||||
}
|
||||
|
||||
|
||||
@ -97,13 +97,11 @@ public class MaterialsTextureLoader : TextureLoader {
|
||||
}
|
||||
page.rendererObject = material;
|
||||
|
||||
//deal with really, really old atlas files
|
||||
if (page.width == 0 || page.height == 0)
|
||||
{
|
||||
page.width = material.mainTexture.width;
|
||||
page.height = material.mainTexture.height;
|
||||
}
|
||||
|
||||
// Very old atlas files expected the texture's actual size to be used at runtime.
|
||||
if (page.width == 0 || page.height == 0) {
|
||||
page.width = material.mainTexture.width;
|
||||
page.height = material.mainTexture.height;
|
||||
}
|
||||
}
|
||||
|
||||
public void Unload (object texture) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user