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
+3 -1
View File
@@ -55,7 +55,9 @@ static int l_parse_model(lua::State* L) {
auto name = lua::require_string(L, 3);
if (format == "xml" || format == "vcm") {
engine->getAssets()->store(vcm::parse(name, string), name);
engine->getAssets()->store(
vcm::parse(name, string, format == "xml"), name
);
} else {
throw std::runtime_error("unknown format " + util::quote(std::string(format)));
}