[csharp] Added missing csharp-specific lines for latest API changes (missing copying of Attachment.RenderObject). See #841.

This commit is contained in:
Harald Csaszar 2019-06-03 18:30:48 +02:00
parent 995cfa0d0a
commit 68f8cc40c4
2 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,7 @@ namespace Spine {
if (parentMesh != null) return NewLinkedMesh();
MeshAttachment copy = new MeshAttachment(this.Name);
copy.RendererObject = RendererObject;
copy.regionOffsetX = regionOffsetX;
copy.regionOffsetY = regionOffsetY;
copy.regionWidth = regionWidth;
@ -187,6 +188,7 @@ namespace Spine {
///<summary>Returns a new mesh with this mesh set as the <see cref="ParentMesh"/>.
public MeshAttachment NewLinkedMesh () {
MeshAttachment mesh = new MeshAttachment(Name);
mesh.RendererObject = RendererObject;
mesh.regionOffsetX = regionOffsetX;
mesh.regionOffsetY = regionOffsetY;
mesh.regionWidth = regionWidth;

View File

@ -181,6 +181,7 @@ namespace Spine {
public override Attachment Copy () {
RegionAttachment copy = new RegionAttachment(this.Name);
copy.RendererObject = RendererObject;
copy.regionOffsetX = regionOffsetX;
copy.regionOffsetY = regionOffsetY;
copy.regionWidth = regionWidth;