From 27e8f8e4b2a3353cbd4f035f62bfa259acea6c9c Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 24 Feb 2026 18:44:18 +0100 Subject: [PATCH] finish threaded physics implementation --- src/state.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state.cpp b/src/state.cpp index 805237d..d1e12ec 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -37,6 +37,7 @@ auto StateManager::FillGraph() -> void { std::vector>> closure = current_state.Closure(); + physics.ClearCmd(); physics.AddMassSpringsCmd(closure.first.size(), closure.second); for (const State &state : closure.first) { states.insert(std::make_pair(state, states.size()));