mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
Open .txt as JSON.
This commit is contained in:
parent
df971f7c70
commit
efff26ebc9
@ -116,7 +116,8 @@ public class SkeletonTest extends ApplicationAdapter {
|
||||
};
|
||||
|
||||
try {
|
||||
if (skeletonFile.extension().equalsIgnoreCase("json")) {
|
||||
String extension = skeletonFile.extension();
|
||||
if (extension.equalsIgnoreCase("json") || extension.equalsIgnoreCase("txt")) {
|
||||
SkeletonJson json = new SkeletonJson(atlas);
|
||||
json.setScale(ui.scaleSlider.getValue());
|
||||
skeletonData = json.readSkeletonData(skeletonFile);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user