mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
feat: support alternative vcm models syntax
This commit is contained in:
parent
8f342fe429
commit
4333d9ab06
10 changed files with 155 additions and 28 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue