[unity] Fixed one more occurrance where a default skin was assumed to exist (which is no longer the case). Related to ae4790b. See #1453.

This commit is contained in:
Harald Csaszar 2019-08-20 11:02:26 +02:00
parent bf052f9a4e
commit a487d6d0d6

View File

@ -58,7 +58,7 @@ namespace Spine.Unity.AttachmentTools {
var defaultSkin = skeleton.data.DefaultSkin;
var activeSkin = skeleton.skin;
if (includeDefaultSkin && defaultSkin != null)
if (includeDefaultSkin)
defaultSkin.CopyTo(newSkin, true, cloneAttachments, cloneMeshesAsLinked);
if (activeSkin != null)