From 919e2eadddf0685c454330ae2927601838ee6a5f Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 31 Dec 2018 11:15:37 -0800 Subject: [PATCH] Fix valueSetIsDistance when manual camera change --- src/MissionManager/CameraCalc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MissionManager/CameraCalc.cc b/src/MissionManager/CameraCalc.cc index 5f15bb25e1..c775c1b76f 100644 --- a/src/MissionManager/CameraCalc.cc +++ b/src/MissionManager/CameraCalc.cc @@ -127,8 +127,8 @@ void CameraCalc::_cameraNameChanged(void) // These values are unknown for these types fixedOrientation()->setRawValue(false); minTriggerInterval()->setRawValue(0); - if (isManualCamera()) { - valueSetIsDistance()->setRawValue(false); + if (isManualCamera() && !valueSetIsDistance()->rawValue().toBool()) { + valueSetIsDistance()->setRawValue(true); } } else { qWarning() << "Internal Error: Not known camera, but now manual or custom either"; -- GitLab