Fix critical bug in Curve::CalcTiltStep (infinite cycle protection).