[unity] Fix bug in CloneVertexAttachment (#885)

This commit is contained in:
Ran QUAN / 権然 2017-04-25 14:56:49 +09:00 committed by John
parent e86c93fced
commit 65304384d6

View File

@ -807,7 +807,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
static void CloneVertexAttachment (VertexAttachment src, VertexAttachment dest) {
dest.worldVerticesLength = src.worldVerticesLength;
if (src.bones != null)
dest.bones = src.vertices.Clone() as int[];
dest.bones = src.bones.Clone() as int[];
if (src.vertices != null)
dest.vertices = src.vertices.Clone() as float[];