[libgdx] Made fixes from 4.1-beta-physics in 4.1-beta.

This commit is contained in:
Nathan Sweet 2022-01-31 11:21:07 -04:00
parent fd617b562e
commit 6135fa8684
4 changed files with 4 additions and 4 deletions

View File

@ -59,6 +59,6 @@ public class BoundingBoxAttachment extends VertexAttachment {
}
public BoundingBoxAttachment copy () {
return new BoundingBoxAttachment(name);
return new BoundingBoxAttachment(this);
}
}

View File

@ -69,6 +69,6 @@ public class ClippingAttachment extends VertexAttachment {
}
public ClippingAttachment copy () {
return new ClippingAttachment(name);
return new ClippingAttachment(this);
}
}

View File

@ -80,7 +80,7 @@ public class MeshAttachment extends VertexAttachment implements HasTextureRegion
arraycopy(other.triangles, 0, triangles, 0, triangles.length);
hullLength = other.hullLength;
sequence = sequence != null ? new Sequence(sequence) : null;
sequence = other.sequence != null ? new Sequence(other.sequence) : null;
// Nonessential.
if (other.edges != null) {

View File

@ -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 = sequence != null ? new Sequence(sequence) : null;
sequence = other.sequence != null ? new Sequence(other.sequence) : null;
}
/** Calculates the {@link #offset} and {@link #uvs} using the region and the attachment's transform. Must be called if the