feat: support alternative vcm models syntax
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user