mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix: on_render called while paused
This commit is contained in:
parent
19c6a82ab2
commit
690b8f4807
5 changed files with 17 additions and 11 deletions
|
|
@ -350,8 +350,10 @@ void Entities::renderDebug(LineBatch& batch, const Frustum& frustum) {
|
|||
}
|
||||
}
|
||||
|
||||
void Entities::render(Assets* assets, ModelBatch& batch, const Frustum& frustum) {
|
||||
scripting::on_entities_render();
|
||||
void Entities::render(Assets* assets, ModelBatch& batch, const Frustum& frustum, bool pause) {
|
||||
if (!pause) {
|
||||
scripting::on_entities_render();
|
||||
}
|
||||
|
||||
auto view = registry.view<Transform, rigging::Rig>();
|
||||
for (auto [entity, transform, rig] : view.each()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue