Author: post
Date: 2009-12-30 21:23:06 +0100 (Wed, 30 Dec 2009)
New Revision: 2903
Modified:
branches/rawstudio-ng-color/plugins/lensfun/lensfun.c
Log:
Disable lens distortion if this is disabled.
Modified: branches/rawstudio-ng-color/plugins/lensfun/lensfun.c
===================================================================
--- branches/rawstudio-ng-color/plugins/lensfun/lensfun.c 2009-12-30
20:18:53 UTC (rev 2902)
+++ branches/rawstudio-ng-color/plugins/lensfun/lensfun.c 2009-12-30
20:23:06 UTC (rev 2903)
@@ -458,9 +458,9 @@
}
- if (!lensfun->selected_lens && lensfun->selected_camera)
+ if ((!lensfun->selected_lens || !lensfun->distortion_enabled)
&& lensfun->selected_camera)
{
- g_debug("Lensfun: Lens not found. Using neutral
lense.");
+ g_debug("Lensfun: Lens not found or lens is disabled.
Using neutral lense.");
if (ABS(lensfun->tca_kr) + ABS(lensfun->tca_kb) +
ABS(lensfun->vignetting_k1) +
ABS(lensfun->vignetting_k2) + ABS(lensfun->vignetting_k3)
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit