mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
Fixed attachment copy bugs.
This commit is contained in:
parent
45f59dc86f
commit
f5eed7a889
@ -59,6 +59,6 @@ public class BoundingBoxAttachment extends VertexAttachment {
|
||||
}
|
||||
|
||||
public BoundingBoxAttachment copy () {
|
||||
return new BoundingBoxAttachment(name);
|
||||
return new BoundingBoxAttachment(this);
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,6 +69,6 @@ public class ClippingAttachment extends VertexAttachment {
|
||||
}
|
||||
|
||||
public ClippingAttachment copy () {
|
||||
return new ClippingAttachment(name);
|
||||
return new ClippingAttachment(this);
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ public class MeshAttachment extends VertexAttachment implements HasTextureRegion
|
||||
arraycopy(other.triangles, 0, triangles, 0, triangles.length);
|
||||
|
||||
hullLength = other.hullLength;
|
||||
sequence = new Sequence(sequence);
|
||||
sequence = new Sequence(other.sequence);
|
||||
|
||||
// Nonessential.
|
||||
if (other.edges != null) {
|
||||
|
||||
@ -75,7 +75,7 @@ public class RegionAttachment extends Attachment implements HasTextureRegion {
|
||||
arraycopy(other.uvs, 0, uvs, 0, 8);
|
||||
arraycopy(other.offset, 0, offset, 0, 8);
|
||||
color.set(other.color);
|
||||
sequence = new Sequence(sequence);
|
||||
sequence = new Sequence(other.sequence);
|
||||
}
|
||||
|
||||
/** Calculates the {@link #offset} and {@link #uvs} using the region and the attachment's transform. Must be called if the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user