add 'uv-lock' block property

This commit is contained in:
MihailRis 2026-11-02 00:03:25 +03:00
parent c2777eba09
commit 463a439089
8 changed files with 131 additions and 12 deletions

View file

@ -317,7 +317,11 @@ void BlocksRenderer::blockCustomModel(
);
}
const auto& model = cache.getModel(block.rt.id, block.getVariantIndex(states.userbits));
const auto& model = cache.getModel(
block.rt.id,
block.getVariantIndex(states.userbits),
block.uvLock && block.rotatable ? states.rotation : 0
);
for (const auto& mesh : model.meshes) {
if (vertexCount + mesh.vertices.size() >= capacity
|| indexCount + mesh.vertices.size() >= capacity) {