fix per texture uv

This commit is contained in:
zimzaza4
2024-10-27 12:33:34 +08:00
parent 64f4a3c6b0
commit 05422934cc

View File

@@ -221,7 +221,8 @@ public class GeneratorMain {
Integer[] size = modelConfig.getPerTextureUvSize().getOrDefault(name, new Integer[]{16, 16});
String suffix = size[0] + "_" + size[1];
entry.getValue().setTextureWidth(size[0]);
entry.getValue().setTextureHeight(size[1]);
path = modelsFolder.toPath().resolve(entry.getValue().getPath() + entry.getKey() + "_" + suffix + ".geo.json");
entry.getValue().setId(id + "_" + suffix);