Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2304,8 +2304,8 @@ void Application::setActiveFaceTracker() { · 2303 unmodified lines | ||
| 2304 | 2304 | #endif |
| 2305 | 2305 | } |
| 2306 | 2306 | |
| 2307 | −void Application::setActiveEyeTracker() { | |
| 2308 | 2307 | #ifdef HAVE_IVIEWHMD |
| 2308 | +void Application::setActiveEyeTracker() { | |
| 2309 | 2309 | auto eyeTracker = DependencyManager::get<EyeTracker>(); |
| 2310 | 2310 | if (!eyeTracker->isInitialized()) { |
| 2311 | 2311 | return; |
| @@ -2318,29 +2318,20 @@ void Application::setActiveEyeTracker() { · 6 unmodified lines | ||
| 2318 | 2318 | Menu::getInstance()->getActionForOption(MenuOption::OnePointCalibration)->setEnabled(isEyeTracking && !isSimulating); |
| 2319 | 2319 | Menu::getInstance()->getActionForOption(MenuOption::ThreePointCalibration)->setEnabled(isEyeTracking && !isSimulating); |
| 2320 | 2320 | Menu::getInstance()->getActionForOption(MenuOption::FivePointCalibration)->setEnabled(isEyeTracking && !isSimulating); |
| 2321 | −#endif | |
| 2322 | 2321 | } |
| 2323 | 2322 | |
| 2324 | 2323 | void Application::calibrateEyeTracker1Point() { |
| 2325 | −#ifdef HAVE_IVIEWHMD | |
| 2326 | − auto eyeTracker = DependencyManager::get<EyeTracker>(); | |
| 2327 | − eyeTracker->calibrate(1); | |
| 2328 | −#endif | |
| 2324 | + DependencyManager::get<EyeTracker>()->calibrate(1); | |
| 2329 | 2325 | } |
| 2330 | 2326 | |
| 2331 | 2327 | void Application::calibrateEyeTracker3Points() { |
| 2332 | −#ifdef HAVE_IVIEWHMD | |
| 2333 | − auto eyeTracker = DependencyManager::get<EyeTracker>(); | |
| 2334 | − eyeTracker->calibrate(3); | |
| 2335 | −#endif | |
| 2328 | + DependencyManager::get<EyeTracker>()->calibrate(3); | |
| 2336 | 2329 | } |
| 2337 | 2330 | |
| 2338 | 2331 | void Application::calibrateEyeTracker5Points() { |
| 2339 | −#ifdef HAVE_IVIEWHMD | |
| 2340 | − auto eyeTracker = DependencyManager::get<EyeTracker>(); | |
| 2341 | − eyeTracker->calibrate(5); | |
| 2342 | −#endif | |
| 2332 | + DependencyManager::get<EyeTracker>()->calibrate(5); | |
| 2343 | 2333 | } |
| 2334 | +#endif | |
| 2344 | 2335 | |
| 2345 | 2336 | bool Application::exportEntities(const QString& filename, const QVector<EntityItemID>& entityIDs) { |
| 2346 | 2337 | QVector<EntityItemPointer> entities; |