[unity] Fix clone methods return value. Sorry!

This commit is contained in:
John 2017-04-15 06:36:40 +08:00 committed by GitHub
parent 689d753030
commit 419b5a688d

View File

@ -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) {