diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog index 2e77c565a..c790cbaee 100644 --- a/[GSoC]ChangeLog +++ b/[GSoC]ChangeLog @@ -1,3 +1,7 @@ +2020-08-1 Anuj Verma + + * src/sdf/ftbsdf.c (compare_neighbor): Fix bug. + 2020-08-1 Anuj Verma [sdf -> bsdf] Optimized a bit. diff --git a/src/sdf/ftbsdf.c b/src/sdf/ftbsdf.c index dd05052af..73f63dc13 100644 --- a/src/sdf/ftbsdf.c +++ b/src/sdf/ftbsdf.c @@ -214,9 +214,6 @@ FT_16D16 alphas[9]; - if ( x == 41 && y == 72 ) - gx = 0; - /* Since our spread cannot be 0, this condition */ /* can never be true. */ if ( x <= 0 || x >= w - 1 || @@ -547,9 +544,10 @@ /* Of course this will be eliminated while using */ /* squared distances. */ - /* Approximate the distance, use 1 to avoid */ - /* precision errors. */ - dist = to_check->dist + ONE; + /* Approximate the distance, use 1 to avoid */ + /* precision errors. We subtract because the */ + /* two directions can be opposite. */ + dist = to_check->dist - ONE; if ( dist < current->dist ) {