diff options
| author | hachem <im@hachem.wtf> | 2025-08-21 19:08:34 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-21 19:08:34 +0200 |
| commit | d8ba57f6d45b9467520377ffcc1f453154d77430 (patch) | |
| tree | fe3c68a98f5efecadc8416f757839fae0cb4467d /src/states/world_builder_state.cpp | |
| parent | 3d13b496b10f9571b5724ee4df51cfd80f513a62 (diff) | |
fix: proper scene loading
Diffstat (limited to 'src/states/world_builder_state.cpp')
| -rw-r--r-- | src/states/world_builder_state.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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"); |
