Skip to content

Commit

Permalink
[unity] Fix clone methods return value. Sorry!
Browse files Browse the repository at this point in the history
  • Loading branch information
pharan committed Apr 14, 2017
1 parent 0c59ccc commit e4f4e61
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -669,7 +669,7 @@ public static class AttachmentCloneExtensions {
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) {
Expand Down Expand Up @@ -720,7 +720,7 @@ public static class AttachmentCloneExtensions {
ma.Height = o.Height;
}

return o;
return ma;
}

public static PathAttachment GetClone (this PathAttachment o) {
Expand Down

0 comments on commit e4f4e61

Please sign in to comment.