Fixed another bugs in curves vibrance and exposure
This commit is contained in:
parent
35fb9e28c9
commit
4136a6ee03
@ -452,12 +452,13 @@ void CurveFactory::curveskLocal(bool & localskutili, const std::vector<double>&
|
|||||||
bool needed = false;
|
bool needed = false;
|
||||||
std::unique_ptr<DiagonalCurve> dCurve;
|
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));
|
dCurve = std::unique_ptr<DiagonalCurve> (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip));
|
||||||
|
|
||||||
if (dCurve && !dCurve->isIdentity()) {
|
if (dCurve && !dCurve->isIdentity()) {
|
||||||
needed = true;
|
needed = true;
|
||||||
// localskutili = true;
|
localskutili = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -470,11 +471,13 @@ void CurveFactory::curveexLocal(bool & localexutili, const std::vector<double>&
|
|||||||
bool needed = false;
|
bool needed = false;
|
||||||
std::unique_ptr<DiagonalCurve> dCurve;
|
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));
|
dCurve = std::unique_ptr<DiagonalCurve> (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip));
|
||||||
|
|
||||||
if (dCurve && !dCurve->isIdentity()) {
|
if (dCurve && !dCurve->isIdentity()) {
|
||||||
needed = true;
|
needed = true;
|
||||||
|
localexutili = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3347,7 +3347,7 @@ void ImProcCoordinator::updatePreviewImage(int todo, Crop* cropCall)
|
|||||||
std::string t_none2 = "0A@";
|
std::string t_none2 = "0A@";
|
||||||
|
|
||||||
if (skinstr[sp].c_str() != t_curvskinref2 && skinstr[sp].c_str() != t_none2) {
|
if (skinstr[sp].c_str() != t_curvskinref2 && skinstr[sp].c_str() != t_none2) {
|
||||||
localskutili = true;
|
// localskutili = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string t_curvexref2 = "3000A0B0C1000D1000E@";
|
std::string t_curvexref2 = "3000A0B0C1000D1000E@";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user