diff --git a/Unreal/Plugins/AirSim/Source/PIPCamera.cpp b/Unreal/Plugins/AirSim/Source/PIPCamera.cpp index 114c08f31..bd815eebb 100644 --- a/Unreal/Plugins/AirSim/Source/PIPCamera.cpp +++ b/Unreal/Plugins/AirSim/Source/PIPCamera.cpp @@ -756,7 +756,9 @@ void APIPCamera::setFocusAperture(float focus_aperture) void APIPCamera::enableFocusPlane(bool enable) { +#if WITH_EDITOR camera_->FocusSettings.bDrawDebugFocusPlane = enable; +#endif } std::string APIPCamera::getCurrentFieldOfView() const