浏览代码

[unity] Fix bug in CloneVertexAttachment (#885)

Ran QUAN / 権然 8 年之前
父节点
当前提交
65304384d6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-unity/Assets/spine-unity/Modules/AttachmentTools/AttachmentTools.cs

+ 1 - 1
spine-unity/Assets/spine-unity/Modules/AttachmentTools/AttachmentTools.cs

@@ -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[];