OSDN Git Service

(no commit message)
authornathan.sweet <nathan.sweet@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Mon, 31 Jan 2011 07:01:49 +0000 (07:01 +0000)
committernathan.sweet <nathan.sweet@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Mon, 31 Jan 2011 07:01:49 +0000 (07:01 +0000)
gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java

index 02d0799..d2979b5 100644 (file)
@@ -411,7 +411,7 @@ public class TextureAtlas {
                final AtlasRegion region;\r
 \r
                public AtlasSprite (AtlasRegion region) {\r
-                       this.region = region;\r
+                       this.region = new AtlasRegion(region);\r
                        setRegion(region);\r
                        if (region.rotate) rotate90(true);\r
                        setOrigin(region.originalWidth / 2, region.originalHeight / 2);\r