[unity] Fix cloning MeshAttachment nonessential fields.

This commit is contained in:
John 2017-03-31 02:05:03 +08:00 committed by GitHub
parent 48173c6d85
commit 14b61672a0

View File

@ -715,7 +715,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
ma.hulllength = o.hulllength;
// Nonessential.
ma.Edges = o.Edges.Clone() as int[];
ma.Edges = (o.Edges == null) ? null : o.Edges.Clone() as int[]; // Allow absence of Edges array when nonessential data is not exported.
ma.Width = o.Width;
ma.Height = o.Height;
}