spline/bezier fix and support flat shading