mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
add 'uv-lock' block property
This commit is contained in:
parent
c2777eba09
commit
463a439089
8 changed files with 131 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue