fix assets.parse_model with 'xml' format

This commit is contained in:
MihailRis
2025-10-15 12:17:46 +03:00
parent da41de263d
commit ec94abccbc
6 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -381,7 +381,8 @@ assetload::postfunc assetload::model(
auto text = io::read_string(path);
try {
auto model = vcm::parse(path.string(), text).release();
auto model = vcm::parse(path.string(), text, path.extension() == ".xml")
.release();
return [=](Assets* assets) {
request_textures(loader, *model);
assets->store(std::unique_ptr<model::Model>(model), name);