mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-14 11:28:42 -06:00
fix mesh not updating
This commit is contained in:
parent
f067a07d90
commit
c32d97b636
|
@ -110,7 +110,9 @@ fn process_state_changes(
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// If the chunk is already in the desired state, skip it
|
// If the chunk is already in the desired state, skip it
|
||||||
if chunk.desired_state.matches_current(chunk.current_state) {
|
// (except one annoying edge case where chunk is rendered but dirty, then we need to recalculate the mesh)
|
||||||
|
if chunk.desired_state.matches_current(chunk.current_state) &&
|
||||||
|
!(chunk.desired_state == DesiredChunkState::Rendered && chunk.mesh_dirty) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
match chunk.desired_state {
|
match chunk.desired_state {
|
||||||
|
|
Loading…
Reference in a new issue