mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
fix assets.parse_model with 'xml' format
This commit is contained in:
parent
da41de263d
commit
ec94abccbc
6 changed files with 12 additions and 8 deletions
|
|
@ -381,7 +381,8 @@ assetload::postfunc assetload::model(
|
|||
|
||||
auto text = io::read_string(path);
|
||||
try {
|
||||
auto model = vcm::parse(path.string(), text).release();
|
||||
auto model = vcm::parse(path.string(), text, path.extension() == ".xml")
|
||||
.release();
|
||||
return [=](Assets* assets) {
|
||||
request_textures(loader, *model);
|
||||
assets->store(std::unique_ptr<model::Model>(model), name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue