mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
[unity] Fix clone methods return value. Sorry!
This commit is contained in:
parent
689d753030
commit
419b5a688d
@ -669,7 +669,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
|
|||||||
public static BoundingBoxAttachment GetClone (this BoundingBoxAttachment o) {
|
public static BoundingBoxAttachment GetClone (this BoundingBoxAttachment o) {
|
||||||
var ba = new BoundingBoxAttachment(o.Name);
|
var ba = new BoundingBoxAttachment(o.Name);
|
||||||
CloneVertexAttachment(o, ba);
|
CloneVertexAttachment(o, ba);
|
||||||
return o;
|
return ba;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MeshAttachment GetLinkedClone (this MeshAttachment o, bool inheritDeform = true) {
|
public static MeshAttachment GetLinkedClone (this MeshAttachment o, bool inheritDeform = true) {
|
||||||
@ -720,7 +720,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
|
|||||||
ma.Height = o.Height;
|
ma.Height = o.Height;
|
||||||
}
|
}
|
||||||
|
|
||||||
return o;
|
return ma;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PathAttachment GetClone (this PathAttachment o) {
|
public static PathAttachment GetClone (this PathAttachment o) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user