This commit is contained in:
zimzaza4
2024-10-27 15:17:24 +08:00
parent 05422934cc
commit a717415121
2 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ public class Geometry {
if (element.isJsonObject()) { if (element.isJsonObject()) {
String name = element.getAsJsonObject().get("name").getAsString().toLowerCase(Locale.ROOT); String name = element.getAsJsonObject().get("name").getAsString().toLowerCase(Locale.ROOT);
String parent = element.getAsJsonObject().has("parent") ? element.getAsJsonObject().get("parent").getAsString() : null; String parent = element.getAsJsonObject().has("parent") ? element.getAsJsonObject().get("parent").getAsString().toLowerCase() : null;
element.getAsJsonObject().remove("name"); element.getAsJsonObject().remove("name");
element.getAsJsonObject().addProperty("name", name); element.getAsJsonObject().addProperty("name", name);

View File

@@ -27,7 +27,7 @@ public class RenderController {
root.add("render_controllers", renderControllers); root.add("render_controllers", renderControllers);
Set<Bone> processedBones = new HashSet<>(); Set<Bone> processedBones = new HashSet<>();
boolean singleTexture = entity.textureMap.size() == 1; boolean singleTexture = entity.textureMap.size() == 1 && entity.modelConfig.getPerTextureUvSize().isEmpty();
for (String key : entity.textureMap.keySet()) { for (String key : entity.textureMap.keySet()) {
// Texture texture = entity.textureMap.get(key); // Texture texture = entity.textureMap.get(key);
@@ -103,10 +103,10 @@ public class RenderController {
if (uvBone.equals("*")) { if (uvBone.equals("*")) {
uvAllBones.addAll(bones.keySet()); uvAllBones.addAll(bones.keySet());
} }
if (!bones.containsKey(uvBone)) { if (!bones.containsKey(uvBone.toLowerCase())) {
continue; continue;
} }
uvAllBones.add(uvBone); uvAllBones.add(uvBone.toLowerCase());
} }