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
@@ -55,7 +55,7 @@ local function load_models_list(packs)
local registry = export.registry
for _, filename in ipairs(file.list("models")) do
local ext = file.ext(filename)
if ext == "xml" then
if ext == "xml" or ext == "vcm" then
registry[filename] = {type="model", unit=file.stem(filename)}
table.insert(export.filenames, filename)
end