浏览代码

[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;