mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[csharp] Added missing csharp-specific lines for latest API changes (missing copying of Attachment.RenderObject). See #841.
This commit is contained in:
parent
995cfa0d0a
commit
68f8cc40c4
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user