diff options
Diffstat (limited to 'src/chunk-scenery.cpp')
-rw-r--r-- | src/chunk-scenery.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp index edfbfeb1..a2a61907 100644 --- a/src/chunk-scenery.cpp +++ b/src/chunk-scenery.cpp @@ -150,9 +150,8 @@ auto chunk::ensure_scenery_mesh(scenery_scratch_buffers buffers) noexcept -> sce { if (e->is_dynamic()) continue; - if (e->is_virtual()) - continue; const auto& atlas = e->atlas; + fm_debug_assert(atlas != nullptr); const auto& fr = *e; const auto pos = e->coord.local(); const auto coord = Vector3(pos) * TILE_SIZE + Vector3(Vector2(fr.offset), 0); @@ -182,8 +181,6 @@ auto chunk::ensure_scenery_mesh(scenery_scratch_buffers buffers) noexcept -> sce uint32_t j = 0, i = 0; for (const auto& e : _entities) { - if (e->is_virtual()) - continue; auto index = e->is_dynamic() ? (uint32_t)-1 : j++; array[i++] = { e.get(), (uint32_t)-1, e->ordinal(), make_topo_sort_data(*e, index) }; } |