@@ -45,7 +45,7 @@ TimeStepTetModel simulation;
4545const unsigned int width = 30 ;
4646const unsigned int depth = 5 ;
4747const unsigned int height = 5 ;
48- bool pause = true ;
48+ bool doPause = true ;
4949std::vector<unsigned int > selectedParticles;
5050Eigen::Vector3f oldMousePos;
5151
@@ -67,7 +67,7 @@ int main( int argc, char **argv )
6767 MiniGL::setClientSceneFunc (render);
6868 MiniGL::setViewport (40 .0f , 0 .1f , 500 .0f , Vector3f (5.0 , -10.0 , 30.0 ), Vector3f (5.0 , 0.0 , 0.0 ));
6969
70- TwAddVarRW (MiniGL::getTweakBar (), " Pause" , TW_TYPE_BOOLCPP, &pause , " label='Pause' group=Simulation key=SPACE " );
70+ TwAddVarRW (MiniGL::getTweakBar (), " Pause" , TW_TYPE_BOOLCPP, &doPause , " label='Pause' group=Simulation key=SPACE " );
7171 TwAddVarCB (MiniGL::getTweakBar (), " TimeStepSize" , TW_TYPE_FLOAT, setTimeStep, getTimeStep, &model, " label='Time step size' min=0.0 max = 0.1 step=0.001 precision=4 group=Simulation " );
7272 TwType enumType = TwDefineEnum (" VelocityUpdateMethodType" , NULL , 0 );
7373 TwAddVarCB (MiniGL::getTweakBar (), " VelocityUpdateMethod" , enumType, setVelocityUpdateMethod, getVelocityUpdateMethod, &simulation, " label='Velocity update method' enum='0 {First Order Update}, 1 {Second Order Update}' group=Simulation" );
@@ -131,7 +131,7 @@ void selection(const Eigen::Vector2i &start, const Eigen::Vector2i &end)
131131
132132void timeStep ()
133133{
134- if (pause )
134+ if (doPause )
135135 return ;
136136
137137 // Simulation code
0 commit comments