mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
fix custom model block particles when texture is not specified
This commit is contained in:
parent
53d75a975c
commit
64369fb189
1 changed files with 6 additions and 0 deletions
|
|
@ -228,6 +228,12 @@ void ContentLoader::loadBlock(
|
||||||
} else {
|
} else {
|
||||||
throw std::runtime_error(name + ": no 'model-primitives' found");
|
throw std::runtime_error(name + ": no 'model-primitives' found");
|
||||||
}
|
}
|
||||||
|
for (uint i = 0; i < 6; i++) {
|
||||||
|
std::string& texture = def.textureFaces[i];
|
||||||
|
if (texture == TEXTURE_NOTFOUND) {
|
||||||
|
texture = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
def.model = *model;
|
def.model = *model;
|
||||||
} else if (!modelName.empty()) {
|
} else if (!modelName.empty()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue