浏览代码

[csharp] Fixed RegionAttachment copy method, did not copy color. Closes #1555.

Harald Csaszar 5 年之前
父节点
当前提交
701ef901dc
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      spine-csharp/src/Attachments/RegionAttachment.cs

+ 4 - 0
spine-csharp/src/Attachments/RegionAttachment.cs

@@ -198,6 +198,10 @@ namespace Spine {
 			copy.height = height;
 			Array.Copy(uvs, 0, copy.uvs, 0, 8);
 			Array.Copy(offset, 0, copy.offset, 0, 8);
+			copy.r = r;
+			copy.g = g;
+			copy.b = b;
+			copy.a = a;
 			return copy;
 		}
 	}