mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Fixed NullReferenceException upon SkeletonGraphic drag&drop instantiation. Closes #2292.
This commit is contained in:
parent
ddb05fe469
commit
7883f0fafd
@ -278,7 +278,6 @@ namespace Spine.Unity {
|
||||
}
|
||||
|
||||
protected override void Awake () {
|
||||
|
||||
base.Awake();
|
||||
this.onCullStateChanged.AddListener(OnCullStateChanged);
|
||||
|
||||
@ -293,7 +292,7 @@ namespace Spine.Unity {
|
||||
}
|
||||
#endif
|
||||
Initialize(false);
|
||||
Rebuild(CanvasUpdate.PreRender);
|
||||
if (this.IsValid) Rebuild(CanvasUpdate.PreRender);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user