Last opened scene only loaded on start-up in editor now, added entity.enabled check in render_default_renderable_entities-proc

This commit is contained in:
2025-07-27 01:26:08 +02:00
parent ada1acb402
commit 98058856a6
2 changed files with 8 additions and 6 deletions

View File

@@ -1697,7 +1697,7 @@ render :: () {
render_default_renderable_entities :: () {
for e: engine.current_scene.entities {
if e.flags & .RENDERABLE && e.renderable.use_default_pipeline {
if e.enabled && e.flags & .RENDERABLE && e.renderable.use_default_pipeline {
render_entity(e, engine.renderer.default_pipelines.entity_pipeline);
}
}