diff --git a/Plugins/Stereolabs/Source/Stereolabs/Private/Core/StereolabsCameraProxy.cpp b/Plugins/Stereolabs/Source/Stereolabs/Private/Core/StereolabsCameraProxy.cpp index 1e49221f..00f7dd7f 100644 --- a/Plugins/Stereolabs/Source/Stereolabs/Private/Core/StereolabsCameraProxy.cpp +++ b/Plugins/Stereolabs/Source/Stereolabs/Private/Core/StereolabsCameraProxy.cpp @@ -253,7 +253,7 @@ void USlCameraProxy::Internal_OpenCamera(const FSlInitParameters& InitParameters sl_init_parameters.depth_mode = (SL_DEPTH_MODE)InitParameters.DepthMode; sl_init_parameters.enable_right_side_measure = InitParameters.bEnableRightSideMeasure; sl_init_parameters.sdk_gpu_id = FMath::FloorToInt(InitParameters.GPUID); - sl_init_parameters.sdk_verbose = InitParameters.bVerbose; + sl_init_parameters.sdk_verbose = InitParameters.Verbose; sl_init_parameters.depth_stabilization = InitParameters.DepthStabilization; sl_init_parameters.enable_image_enhancement = InitParameters.bEnableImageEnhancement; sl_init_parameters.sensors_required = InitParameters.bSensorsRequired; diff --git a/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsBaseTypes.h b/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsBaseTypes.h index 7076fb54..71113313 100644 --- a/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsBaseTypes.h +++ b/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsBaseTypes.h @@ -2280,7 +2280,7 @@ struct STEREOLABS_API FSlInitParameters Unit(ESlUnit::DU_Centimeter), CoordinateSystem(ESlCoordinateSystem::CS_Cartesian), bRealTime(false), - bVerbose(false), + Verbose(0), bDisableSelfCalibration(false), VerticalFlipImage(ESlFlipMode::FP_AUTO), bEnableRightSideMeasure(false), @@ -2362,10 +2362,10 @@ struct STEREOLABS_API FSlInitParameters *Path ); - GConfig->GetBool( + GConfig->GetInt( Section, - TEXT("bVerbose"), - bVerbose, + TEXT("Verbose"), + Verbose, *Path ); @@ -2553,10 +2553,10 @@ struct STEREOLABS_API FSlInitParameters *Path ); - GConfig->SetBool( + GConfig->SetInt( Section, - TEXT("bVerbose"), - bVerbose, + TEXT("Verbose"), + Verbose, *Path ); @@ -2700,7 +2700,7 @@ struct STEREOLABS_API FSlInitParameters /** Verbose ZED */ UPROPERTY(EditAnywhere, BlueprintReadWrite) - bool bVerbose; + int Verbose; /** Disable self calibration */ UPROPERTY(EditAnywhere, BlueprintReadWrite) diff --git a/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsCoreGlobals.h b/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsCoreGlobals.h index 0ba3e4de..56ae875e 100644 --- a/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsCoreGlobals.h +++ b/Plugins/Stereolabs/Source/Stereolabs/Public/Core/StereolabsCoreGlobals.h @@ -2126,7 +2126,7 @@ namespace sl InitParameters.depth_mode = sl::unreal::ToSlType(UnrealData.DepthMode); InitParameters.enable_right_side_measure = UnrealData.bEnableRightSideMeasure; InitParameters.sdk_gpu_id = FMath::FloorToInt(UnrealData.GPUID); - InitParameters.sdk_verbose = UnrealData.bVerbose; + InitParameters.sdk_verbose = UnrealData.Verbose; InitParameters.sdk_verbose_log_file = TCHAR_TO_UTF8(*UnrealData.VerboseFilePath); InitParameters.grab_compute_capping_fps = UnrealData.GrabComputeCappingFPS; if (UnrealData.InputType == ESlInputType::IT_SVO)