Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1241,8 +1241,10 @@ void Application::idle() { · 1240 unmodified lines | |||
| 1241 | _idleLoopStdev.reset(); | 1241 | _idleLoopStdev.reset(); |
| 1242 | } | 1242 | } |
| 1243 | 1243 | ||
| 1244 | _buckyBalls.simulate(timeSinceLastUpdate / 1000.f, Application::getInstance()->getAvatar()->getHandData()); | 1244 | if (Menu::getInstance()->isOptionChecked(MenuOption::BuckyBalls)) { |
| 1245 | 1245 | _buckyBalls.simulate(timeSinceLastUpdate / 1000.f, Application::getInstance()->getAvatar()->getHandData()); | |
| 1246 | } | ||
| 1247 | |||
| 1246 | // After finishing all of the above work, restart the idle timer, allowing 2ms to process events. | 1248 | // After finishing all of the above work, restart the idle timer, allowing 2ms to process events. |
| 1247 | idleTimer->start(2); | 1249 | idleTimer->start(2); |
| 1248 | } | 1250 | } |