Эх сурвалжийг харах

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

Harald Csaszar 5 жил өмнө
parent
commit
701ef901dc

+ 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;
 		}
 	}