Change code sequence in tracePaths() to only calculate tangents and winding values if they are required.