Skip to content

Commit

Permalink
修正一处动画读取的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Oct 12, 2024
1 parent 82311d8 commit 18185dc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ public class JsonAnimationUtils {
private static Gson GSON = null;

public static Set<Map.Entry<String, JsonElement>> getAnimations(JsonObject json) {
return json.getAsJsonObject("animations").entrySet();
if (json.has("animations")) {
return json.getAsJsonObject("animations").entrySet();
}
return ImmutableSet.of();
}

public static List<Map.Entry<String, JsonElement>> getBones(JsonObject json) {
Expand Down

0 comments on commit 18185dc

Please sign in to comment.