Browse Source

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

Harald Csaszar 5 years ago
parent
commit
701ef901dc
1 changed files with 4 additions and 0 deletions
  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;
 		}
 	}