File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Unreal/Plugins/AirSim/Source Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,9 @@ void APIPCamera::setupCameraFromSettings(const APIPCamera::CameraSetting& camera
374
374
else
375
375
this ->SetActorTickEnabled (false );
376
376
377
+ // set initial focal length
378
+ camera_->CurrentFocalLength = 11.9 ;
379
+
377
380
int image_count = static_cast <int >(Utils::toNumeric (ImageType::Count));
378
381
for (int image_type = -1 ; image_type < image_count; ++image_type) {
379
382
const auto & capture_setting = camera_setting.capture_settings .at (image_type);
@@ -765,10 +768,11 @@ std::string APIPCamera::getCurrentFieldOfView()
765
768
766
769
void APIPCamera::copyCameraSettingsToAllSceneCapture (UCameraComponent* camera)
767
770
{
768
- int image_count = static_cast <int >(Utils::toNumeric (ImageType::Count));
769
- for (image_type >= 0 ) {
770
- // scene capture components
771
- copyCameraSettingsToSceneCapture (camera_, captures_[image_type]);
771
+ int image_count = static_cast <int >(Utils::toNumeric (ImageType::Count));
772
+ for (int image_type = image_count - 1 ; image_type >= 0 ; image_type--) {
773
+ if (image_type >= 0 ) { // scene capture components
774
+ copyCameraSettingsToSceneCapture (camera_, captures_[image_type]);
775
+ }
772
776
}
773
777
}
774
778
You can’t perform that action at this time.
0 commit comments