소스 검색

[csharp] Fixed MeshAttachment copies not copying rotation. Closes #1452.

Harald Csaszar 6 년 전
부모
커밋
2e9dd67e73
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      spine-csharp/src/Attachments/MeshAttachment.cs

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

@@ -160,6 +160,8 @@ namespace Spine {
 			copy.regionHeight = regionHeight;
 			copy.regionOriginalWidth = regionOriginalWidth;
 			copy.regionOriginalHeight = regionOriginalHeight;
+			copy.RegionRotate = RegionRotate;
+			copy.RegionDegrees = RegionDegrees;
 			copy.Path = Path;
 			copy.r = r;
 			copy.g = g;
@@ -195,6 +197,8 @@ namespace Spine {
 			mesh.regionHeight = regionHeight;
 			mesh.regionOriginalWidth = regionOriginalWidth;
 			mesh.regionOriginalHeight = regionOriginalHeight;
+			mesh.RegionDegrees = RegionDegrees;
+			mesh.RegionRotate = RegionRotate;
 
 			mesh.Path = Path;
 			mesh.r = r;