null check

atlas may become null
This commit is contained in:
Shinsuke Sugita 2017-07-10 10:13:26 +09:00 committed by GitHub
parent 9d242ea90a
commit 5ad6934fd1

View File

@ -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) {