mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
update vcm::parse semantics
This commit is contained in:
parent
c34cb57fb8
commit
6760d16052
4 changed files with 55 additions and 51 deletions
|
|
@ -381,8 +381,8 @@ assetload::postfunc assetload::model(
|
|||
|
||||
auto text = io::read_string(path);
|
||||
try {
|
||||
auto model = vcm::parse(path.string(), text, path.extension() == ".xml")
|
||||
.release();
|
||||
auto vcmModel = vcm::parse(path.string(), text, path.extension() == ".xml");
|
||||
auto model = std::make_unique<model::Model>(std::move(vcmModel.squash())).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