mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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()) {
|
||||
if (def->modelName.find(':') == std::string::npos) {
|
||||
if (!def->modelName.empty() &&
|
||||
def->modelName.find(':') == std::string::npos) {
|
||||
loader.add(
|
||||
AssetType::MODEL,
|
||||
MODELS_FOLDER + "/" + def->modelName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue