mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
[unity] Fixed SkeletonGraphic.SkeletonData vs .Skeleton.Data inconsistent behaviour, now both call Initialize(false). Closes #2161.
This commit is contained in:
parent
b48b5a7801
commit
4a0dabe4c3
@ -433,7 +433,13 @@ namespace Spine.Unity {
|
||||
skeleton = value;
|
||||
}
|
||||
}
|
||||
public SkeletonData SkeletonData { get { return skeleton == null ? null : skeleton.Data; } }
|
||||
public SkeletonData SkeletonData {
|
||||
get {
|
||||
Initialize(false);
|
||||
return skeleton == null ? null : skeleton.Data;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsValid { get { return skeleton != null; } }
|
||||
|
||||
public delegate void SkeletonRendererDelegate (SkeletonGraphic skeletonGraphic);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user