From 701ef901dc89e181c5aa736d78f67204d24e6836 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 27 Nov 2019 10:35:47 +0100 Subject: [PATCH] [csharp] Fixed RegionAttachment copy method, did not copy color. Closes #1555. --- spine-csharp/src/Attachments/RegionAttachment.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spine-csharp/src/Attachments/RegionAttachment.cs b/spine-csharp/src/Attachments/RegionAttachment.cs index 10d6263c3..5b2658f40 100644 --- a/spine-csharp/src/Attachments/RegionAttachment.cs +++ b/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; } }