Fixed another bugs in curves vibrance and exposure
This commit is contained in:
@@ -452,12 +452,13 @@ void CurveFactory::curveskLocal(bool & localskutili, const std::vector<double>&
|
||||
bool needed = false;
|
||||
std::unique_ptr<DiagonalCurve> dCurve;
|
||||
|
||||
if (localskutili && !curvePoints.empty() && curvePoints[0] != 0) {
|
||||
// if (localskutili && !curvePoints.empty() && curvePoints[0] != 0) {
|
||||
if (!curvePoints.empty() && curvePoints[0] != 0) {
|
||||
dCurve = std::unique_ptr<DiagonalCurve> (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip));
|
||||
|
||||
if (dCurve && !dCurve->isIdentity()) {
|
||||
needed = true;
|
||||
// localskutili = true;
|
||||
localskutili = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -470,11 +471,13 @@ void CurveFactory::curveexLocal(bool & localexutili, const std::vector<double>&
|
||||
bool needed = false;
|
||||
std::unique_ptr<DiagonalCurve> dCurve;
|
||||
|
||||
if (localexutili && !curvePoints.empty() && curvePoints[0] != 0) {
|
||||
// if (localexutili && !curvePoints.empty() && curvePoints[0] != 0) {
|
||||
if (!curvePoints.empty() && curvePoints[0] != 0) {
|
||||
dCurve = std::unique_ptr<DiagonalCurve> (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip));
|
||||
|
||||
if (dCurve && !dCurve->isIdentity()) {
|
||||
needed = true;
|
||||
localexutili = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user