Minor region optimization
@@ -132,7 +132,12 @@ public class TextureRegion{
/** Sets the texture and coordinates to the specified region. */
public void set(TextureRegion region){
texture = region.texture;
- set(region.u, region.v, region.u2, region.v2);
+ u = region.u;
+ v = region.v;
+ u2 = region.u2;
+ v2 = region.v2;
+ width = region.width;
+ height = region.height;
}
/** Sets the texture to that of the specified region and sets the coordinates relative to the specified region. */
