fix: incorrect UV on custom model blocks

This commit is contained in:
MihailRis
2025-02-19 23:39:50 +03:00
parent 0ccfc2d3a0
commit 12105c2933
3 changed files with 4 additions and 7 deletions
-6
View File
@@ -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()) {