mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 00:58:43 +08:00
Fixed Skeleton Viewer for libgdx TextureAtlas changes.
This commit is contained in:
parent
769f048f55
commit
be84904181
@ -178,8 +178,10 @@ public class SkeletonViewer extends ApplicationAdapter {
|
||||
final AtlasRegion fake = new AtlasRegion(new Texture(pixmap), 0, 0, 32, 32);
|
||||
pixmap.dispose();
|
||||
|
||||
TextureAtlasData atlasData = null;
|
||||
if (atlasFile != null) {
|
||||
TextureAtlasData atlasData;
|
||||
if (atlasFile == null)
|
||||
atlasData = new TextureAtlasData();
|
||||
else {
|
||||
atlasData = new TextureAtlasData(atlasFile, atlasFile.parent(), false);
|
||||
boolean linear = true;
|
||||
for (int i = 0, n = atlasData.getPages().size; i < n; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user