feat: support alternative vcm models syntax

This commit is contained in:
MihailRis
2025-06-01 23:08:59 +03:00
parent 8f342fe429
commit 4333d9ab06
10 changed files with 155 additions and 28 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ static int l_parse_model(lua::State* L) {
auto string = lua::require_lstring(L, 2);
auto name = lua::require_string(L, 3);
if (format == "xml") {
if (format == "xml" || format == "vcm") {
engine->getAssets()->store(vcm::parse(name, string), name);
} else {
throw std::runtime_error("unknown format " + util::quote(std::string(format)));