D2607: Switch eye dropper to use linear color space internally
[blender.git] / source / blender / compositor / operations / COM_DifferenceMatteOperation.cpp
index 325ef83a529a1cc4083b7c2e97f6524385b340b2..aa58c0571cfd1fc4098fd4549804bd81f50a6fc3 100644 (file)
@@ -65,11 +65,11 @@ void DifferenceMatteOperation::executePixelSampled(float output[4], float x, flo
        difference = difference / 3.0f;
 
        /* make 100% transparent */
-       if (difference < tolerance) {
+       if (difference <= tolerance) {
                output[0] = 0.0f;
        }
        /*in the falloff region, make partially transparent */
-       else if (difference < falloff + tolerance) {
+       else if (difference <= falloff + tolerance) {
                difference = difference - tolerance;
                alpha = difference / falloff;
                /*only change if more transparent than before */