浏览代码

[unity] Fix clone methods return value. Sorry!

John 8 年之前
父节点
当前提交
e4f4e61dad
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spine-unity/Assets/spine-unity/Modules/AttachmentTools/AttachmentTools.cs

+ 2 - 2
spine-unity/Assets/spine-unity/Modules/AttachmentTools/AttachmentTools.cs

@@ -669,7 +669,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
 		public static BoundingBoxAttachment GetClone (this BoundingBoxAttachment o) {
 			var ba = new BoundingBoxAttachment(o.Name);
 			CloneVertexAttachment(o, ba);
-			return o;
+			return ba;
 		}
 
 		public static MeshAttachment GetLinkedClone (this MeshAttachment o, bool inheritDeform = true) {
@@ -720,7 +720,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
 				ma.Height = o.Height;
 			}
 
-			return o;
+			return ma;
 		}
 
 		public static PathAttachment GetClone (this PathAttachment o) {