diff --git a/src/libbidir/mut_manifold.cpp b/src/libbidir/mut_manifold.cpp index 48af6dee..32af05f3 100644 --- a/src/libbidir/mut_manifold.cpp +++ b/src/libbidir/mut_manifold.cpp @@ -191,7 +191,7 @@ bool ManifoldPerturbation::sampleMutationRecord( Float sample = m_sampler->next1D(); a = -1; - if (source.vertex(k-1)->isConnectable() && false) { + if (source.vertex(k-1)->isConnectable()) { /* Extra optimization: slightly prefer perturbations from the sensor */ #define SENSOR_PROB (Float) 0.25f @@ -203,9 +203,6 @@ bool ManifoldPerturbation::sampleMutationRecord( } } - a = 1; - step = 1; - if (a < 0) { step = sample < 0.5f ? 1 : -1;