This commit is contained in:
zimzaza4
2024-07-23 01:08:01 +08:00
parent fb4682b038
commit 0b17221801

View File

@@ -48,7 +48,6 @@ public class GeneratorMain {
generateFromFolder(currentPath + folder.getName() + "/", e); generateFromFolder(currentPath + folder.getName() + "/", e);
} }
if (e.getName().endsWith(".png")) { if (e.getName().endsWith(".png")) {
canAdd = true;
textureMap.put(modelId, new Texture(modelId, currentPath, e.toPath())); textureMap.put(modelId, new Texture(modelId, currentPath, e.toPath()));
} }
if (e.getName().endsWith(".json")) { if (e.getName().endsWith(".json")) {
@@ -68,6 +67,7 @@ public class GeneratorMain {
geometry.setPath(currentPath); geometry.setPath(currentPath);
geometry.setModelId(modelId); geometry.setModelId(modelId);
geometryMap.put(modelId, geometry); geometryMap.put(modelId, geometry);
canAdd = true;
} }
} catch (IOException ex) { } catch (IOException ex) {
ex.printStackTrace(); ex.printStackTrace();