diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-27 12:32:17 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-27 12:32:17 (GMT) |
| commit | 0ca680f4c8585642b7201d07a3632ed276e5794a (patch) | |
| tree | a75193ec7599209f24b5b488081cc61609b1eb2d /src/simulation/Simulation.cpp | |
| parent | ebc411667550a0fbebc8ed9ab983b53b2f1c5f5f (diff) | |
| download | powder-0ca680f4c8585642b7201d07a3632ed276e5794a.zip powder-0ca680f4c8585642b7201d07a3632ed276e5794a.tar.gz | |
Enable decorations in renderer for local save items, disable for server save previews.
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 450f6d3..cb9b654 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -238,6 +238,7 @@ Snapshot * Simulation::CreateSnapshot() void Simulation::Restore(const Snapshot & snap) { + parts_lastActiveIndex = NPART-1; std::copy(snap.AirPressure.begin(), snap.AirPressure.end(), &pv[0][0]); std::copy(snap.AirVelocityX.begin(), snap.AirVelocityX.end(), &vx[0][0]); std::copy(snap.AirVelocityY.begin(), snap.AirVelocityY.end(), &vy[0][0]); |
