Skip to content

Commit

Permalink
Set minimum number of solver iterations to 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekpyron committed Apr 8, 2014
1 parent c5b71f7 commit 7ce24ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ void Simulation::OnKeyUp (int key)
{
int iters = sph.GetNumSolverIterations ();
iters += factor;
if (iters < 0) iters = 0;
if (iters < 1) iters = 1;
sph.SetNumSolverIterations (iters);
break;
}
Expand Down

0 comments on commit 7ce24ba

Please sign in to comment.