From d8ba57f6d45b9467520377ffcc1f453154d77430 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 21 Aug 2025 19:08:34 +0200 Subject: fix: proper scene loading --- src/states/world_builder_state.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/states/world_builder_state.cpp') diff --git a/src/states/world_builder_state.cpp b/src/states/world_builder_state.cpp index a01935c..f28f70a 100644 --- a/src/states/world_builder_state.cpp +++ b/src/states/world_builder_state.cpp @@ -480,6 +480,16 @@ namespace Donut ImGui::Spacing(); + if (ImGui::Button("Start Simulation", ImVec2(ImGui::GetWindowWidth() - 20, 30))) + { + auto& engine = Application::get().get_engine(); + engine.load_objects_from_scene(m_scene.objs); + + Application::get().get_state_manager().switch_to_state("Simulation"); + } + + ImGui::Spacing(); + if (ImGui::Button("Back to Config", ImVec2(ImGui::GetWindowWidth() - 20, 30))) Application::get().get_state_manager().switch_to_state("Config"); -- cgit v1.3