Browse Source

Linked meshes also share edges and image size.

NathanSweet 9 years ago
parent
commit
108dd3dd97

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

@@ -77,6 +77,9 @@ namespace Spine {
 					regionUVs = value.regionUVs;
 					triangles = value.triangles;
 					HullLength = value.HullLength;
+					Edges = value.Edges;
+					Width = value.Width;
+					Height = value.Height;
 				}
 			}
 		}

+ 3 - 0
spine-csharp/src/Attachments/WeightedMeshAttachment.cs

@@ -81,6 +81,9 @@ namespace Spine {
 					regionUVs = value.regionUVs;
 					triangles = value.triangles;
 					HullLength = value.HullLength;
+					Edges = value.Edges;
+					Width = value.Width;
+					Height = value.Height;
 				}
 			}
 		}

+ 3 - 0
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/MeshAttachment.java

@@ -219,6 +219,9 @@ public class MeshAttachment extends Attachment implements FfdAttachment {
 			regionUVs = parentMesh.regionUVs;
 			triangles = parentMesh.triangles;
 			hullLength = parentMesh.hullLength;
+			edges = parentMesh.edges;
+			width = parentMesh.width;
+			height = parentMesh.height;
 		}
 	}
 

+ 3 - 0
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/WeightedMeshAttachment.java

@@ -258,6 +258,9 @@ public class WeightedMeshAttachment extends Attachment implements FfdAttachment
 			regionUVs = parentMesh.regionUVs;
 			triangles = parentMesh.triangles;
 			hullLength = parentMesh.hullLength;
+			edges = parentMesh.edges;
+			width = parentMesh.width;
+			height = parentMesh.height;
 		}
 	}