mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 08:16:41 +08:00
[chsarp] MeshAttachment Copy() and NewLinkedMesh() didn't copy region UVs properly. Closes #1499.
This commit is contained in:
parent
9cfe697cfd
commit
6d674c975f
@ -162,6 +162,11 @@ namespace Spine {
|
|||||||
copy.regionOriginalHeight = regionOriginalHeight;
|
copy.regionOriginalHeight = regionOriginalHeight;
|
||||||
copy.RegionRotate = RegionRotate;
|
copy.RegionRotate = RegionRotate;
|
||||||
copy.RegionDegrees = RegionDegrees;
|
copy.RegionDegrees = RegionDegrees;
|
||||||
|
copy.RegionU = RegionU;
|
||||||
|
copy.RegionV = RegionV;
|
||||||
|
copy.RegionU2 = RegionU2;
|
||||||
|
copy.RegionV2 = RegionV2;
|
||||||
|
|
||||||
copy.Path = Path;
|
copy.Path = Path;
|
||||||
copy.r = r;
|
copy.r = r;
|
||||||
copy.g = g;
|
copy.g = g;
|
||||||
@ -199,12 +204,17 @@ namespace Spine {
|
|||||||
mesh.regionOriginalHeight = regionOriginalHeight;
|
mesh.regionOriginalHeight = regionOriginalHeight;
|
||||||
mesh.RegionDegrees = RegionDegrees;
|
mesh.RegionDegrees = RegionDegrees;
|
||||||
mesh.RegionRotate = RegionRotate;
|
mesh.RegionRotate = RegionRotate;
|
||||||
|
mesh.RegionU = RegionU;
|
||||||
|
mesh.RegionV = RegionV;
|
||||||
|
mesh.RegionU2 = RegionU2;
|
||||||
|
mesh.RegionV2 = RegionV2;
|
||||||
|
|
||||||
mesh.Path = Path;
|
mesh.Path = Path;
|
||||||
mesh.r = r;
|
mesh.r = r;
|
||||||
mesh.g = g;
|
mesh.g = g;
|
||||||
mesh.b = b;
|
mesh.b = b;
|
||||||
mesh.a = a;
|
mesh.a = a;
|
||||||
|
|
||||||
mesh.deformAttachment = deformAttachment;
|
mesh.deformAttachment = deformAttachment;
|
||||||
mesh.ParentMesh = parentMesh != null ? parentMesh : this;
|
mesh.ParentMesh = parentMesh != null ? parentMesh : this;
|
||||||
mesh.UpdateUVs();
|
mesh.UpdateUVs();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user