From a752dab7689feb6c295e8a4b914aca55bc8441c9 Mon Sep 17 00:00:00 2001 From: jwendt <wendt@vr.rwth-aachen.de> Date: Fri, 29 Jun 2018 11:09:34 +0200 Subject: [PATCH] Correct wireframe rendering of bounding box --- demos/combustion_demo/src/combustion_demo.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/demos/combustion_demo/src/combustion_demo.cpp b/demos/combustion_demo/src/combustion_demo.cpp index ab7bedce..1703a2e9 100644 --- a/demos/combustion_demo/src/combustion_demo.cpp +++ b/demos/combustion_demo/src/combustion_demo.cpp @@ -103,11 +103,12 @@ int main(int, char**) { "models/combustion/data_box.stl", scene.get()); auto boundingbox_transform = model_boundingbox->GetFirstComponent<phx::Transform>(); - auto boundingbox_mesh_handle = boundingbox_transform->GetChild(0) - ->GetEntity() - ->GetFirstComponent<phx::MeshHandle>(); + auto boundigbox_mesh_entity = + boundingbox_transform->GetChild(0)->GetEntity(); + auto boundingbox_mesh_handle = + boundigbox_mesh_entity->GetFirstComponent<phx::MeshHandle>(); auto render_settings = - model_boundingbox->AddComponent<phx::MeshRenderSettings>(); + boundigbox_mesh_entity->AddComponent<phx::MeshRenderSettings>(); render_settings->SetWireframeMode(true); std::array<glm::vec3, 2> bbox = -- GitLab