mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: incorrect UV on custom model blocks
This commit is contained in:
parent
0ccfc2d3a0
commit
12105c2933
3 changed files with 4 additions and 7 deletions
|
|
@ -269,12 +269,6 @@ void ContentLoader::loadBlock(
|
|||
} else if (def.modelName.empty()) {
|
||||
throw std::runtime_error(name + ": no 'model-primitives' or 'model-name' found");
|
||||
}
|
||||
for (uint i = 0; i < 6; i++) {
|
||||
std::string& texture = def.textureFaces[i];
|
||||
if (texture == TEXTURE_NOTFOUND) {
|
||||
texture = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
def.model = *model;
|
||||
} else if (!modelTypeName.empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue