mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-08 16:24:53 +08:00
null check
atlas may become null
This commit is contained in:
parent
9d242ea90a
commit
5ad6934fd1
@ -62,6 +62,7 @@ namespace Spine.Unity.Modules {
|
||||
if (!this.enabled) return;
|
||||
|
||||
atlas = atlasAsset.GetAtlas();
|
||||
if (atlas == null) return;
|
||||
float scale = skeletonRenderer.skeletonDataAsset.scale;
|
||||
|
||||
foreach (var entry in attachments) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user