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()));