Mini refactor

This commit is contained in:
Emma Broman
2022-04-27 16:03:14 +02:00
parent 3b76ac711b
commit 1116e092b6

View File

@@ -146,13 +146,9 @@ SkyBrowserModule::SkyBrowserModule()
}
if (_isCameraInSolarSystem) {
std::for_each(
_targetsBrowsers.begin(),
_targetsBrowsers.end(),
[&](const std::unique_ptr<TargetBrowserPair>& pair) {
pair->synchronizeAim();
}
);
for (const std::unique_ptr<TargetBrowserPair>& pair : _targetsBrowsers) {
pair->synchronizeAim();
}
incrementallyAnimateTargets();
}
if (_cameraRotation.isAnimating() && _allowCameraRotation) {