Unverified Commit 733a6996 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7110 from DonLakeFlyer/CameraCalc

Camera Calc: Incorrectly setting valueSetIsDistance to false
parents e62a771c 919e2ead
......@@ -18,7 +18,7 @@
"min": 0.1,
"units": "m",
"decimalPlaces": 2,
"defaultValue": 10.0
"defaultValue": 50.0
},
{
"name": "ImageDensity",
......@@ -27,7 +27,7 @@
"min": 0,
"units": "cm/px",
"decimalPlaces": 1,
"defaultValue": 25
"defaultValue": 1.2
},
{
"name": "FrontalOverlap",
......
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment