mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
fix
This commit is contained in:
parent
7ad3139877
commit
46a671f45e
1 changed files with 2 additions and 1 deletions
|
|
@ -236,7 +236,8 @@ void AssetsLoader::addDefaults(AssetsLoader& loader, const Content* content) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const auto& [_, def] : content->blocks.getDefs()) {
|
for (const auto& [_, def] : content->blocks.getDefs()) {
|
||||||
if (def->modelName.find(':') == std::string::npos) {
|
if (!def->modelName.empty() &&
|
||||||
|
def->modelName.find(':') == std::string::npos) {
|
||||||
loader.add(
|
loader.add(
|
||||||
AssetType::MODEL,
|
AssetType::MODEL,
|
||||||
MODELS_FOLDER + "/" + def->modelName,
|
MODELS_FOLDER + "/" + def->modelName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue