mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix missing textures load request for vcm
This commit is contained in:
parent
eca7eeadee
commit
41713e89a4
1 changed files with 2 additions and 1 deletions
|
|
@ -435,13 +435,14 @@ static assetload::postfunc load_vcm_model(
|
|||
}
|
||||
auto vcmModelPtr =
|
||||
std::make_unique<vcm::VcmModel>(std::move(vcmModel)).release();
|
||||
return [=](Assets& assets) {
|
||||
return [=, &loader](Assets& assets) {
|
||||
auto vcmModel = std::unique_ptr<vcm::VcmModel>(vcmModelPtr);
|
||||
for (auto& [partName, model] : vcmModel->parts) {
|
||||
auto fullName = name + "." + partName;
|
||||
logger.info()
|
||||
<< "store model part " << util::quote(partName)
|
||||
<< " as " << util::quote(fullName);
|
||||
request_textures(loader, model);
|
||||
assets.store(
|
||||
std::make_unique<model::Model>(std::move(model)),
|
||||
fullName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue