Handle visibility flag correctly in the scene renderer

This commit is contained in:
Guillaume Meunier
2024-03-30 13:44:51 +01:00
parent 889f1ad5e6
commit f49dd88b77
+3
View File
@@ -818,6 +818,9 @@ void scene_renderer::render(scene_data & scene, const std::array<float, 4>& clea
if (!node.mesh_id)
continue;
if (!visible[index])
continue;
scene_data::mesh& mesh = scene.meshes.at(*node.mesh_id);
glm::mat4& transform = transform_to_root[index];