Make control line correction keep old values

Perspective correction through control lines will no longer modify any
parameters if there are not enough lines to do any correction.
This commit is contained in:
Lawrence Lee
2020-06-23 22:24:27 -07:00
parent 9a40c14858
commit afc3edae26

View File

@@ -451,9 +451,9 @@ void PerspCorrection::applyControlLines(void)
auto control_lines = lines->toControlLines();
int h_count = 0, v_count = 0;
double rot = 0;
double pitch = 0;
double yaw = 0;
double rot = camera_roll->getValue();
double pitch = camera_pitch->getValue();
double yaw = camera_yaw->getValue();
for (unsigned int i = 0; i < lines->size(); i++) {
if (control_lines[i].type == rtengine::ControlLine::HORIZONTAL) {