mirror of
https://github.com/GeyserExtensionists/GeyserModelEnginePackGenerator.git
synced 2025-12-19 15:09:18 +00:00
fix case
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user