fix custom model block particles when texture is not specified
This commit is contained in:
parent
53d75a975c
commit
64369fb189
@ -228,6 +228,12 @@ void ContentLoader::loadBlock(
|
||||
} else {
|
||||
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;
|
||||
} else if (!modelName.empty()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user