Fixed Skeleton Viewer for libgdx TextureAtlas changes.

This commit is contained in:
Nathan Sweet 2021-01-02 18:41:51 -08:00
parent 769f048f55
commit be84904181

View File

@ -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++) {