Fixed Freenect2 calibration default rgb/depth/switched config not working

This commit is contained in:
matlabbe
2017-03-03 18:12:55 -05:00
parent d1aa8bf5ae
commit 46ec0b8f70

View File

@@ -5104,7 +5104,7 @@ void PreferencesDialog::calibrate()
return;
}
bool freenect2 = this->getSourceType() == kSrcFreenect2;
bool freenect2 = driver == kSrcFreenect2;
_calibrationDialog->setStereoMode(this->getSourceType() != kSrcRGB, freenect2?"rgb":"left", freenect2?"depth":"right"); // RGB+Depth or left+right
_calibrationDialog->setSwitchedImages(freenect2);
_calibrationDialog->setSavingDirectory(this->getCameraInfoDir());