mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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;
|
if (!this.enabled) return;
|
||||||
|
|
||||||
atlas = atlasAsset.GetAtlas();
|
atlas = atlasAsset.GetAtlas();
|
||||||
|
if (atlas == null) return;
|
||||||
float scale = skeletonRenderer.skeletonDataAsset.scale;
|
float scale = skeletonRenderer.skeletonDataAsset.scale;
|
||||||
|
|
||||||
foreach (var entry in attachments) {
|
foreach (var entry in attachments) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user