This was triggering the BLI_assert(fac >= 0.0f);. Clamp fac to ensure correct value for release builds.