There could be strokes that have zero lengths (a dot), in this case a NaN factor was given to the final build function, leading to invalid index when accessing arrays. Now `get_stroke_factor` will return either 0.0f or 1.0f (depending on input factor) when stroke has zero total length. Pull Request: https://projects.blender.org/blender/blender/pulls/131683