mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add BlockModel struct
This commit is contained in:
parent
718f5d1089
commit
20e3a961f9
12 changed files with 46 additions and 39 deletions
|
|
@ -257,12 +257,12 @@ void AssetsLoader::addDefaults(AssetsLoader& loader, const Content* content) {
|
|||
}
|
||||
}
|
||||
for (const auto& [_, def] : content->blocks.getDefs()) {
|
||||
if (!def->modelName.empty() &&
|
||||
def->modelName.find(':') == std::string::npos) {
|
||||
if (!def->model.name.empty() &&
|
||||
def->model.name.find(':') == std::string::npos) {
|
||||
loader.add(
|
||||
AssetType::MODEL,
|
||||
MODELS_FOLDER + "/" + def->modelName,
|
||||
def->modelName
|
||||
MODELS_FOLDER + "/" + def->model.name,
|
||||
def->model.name
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue