It's not necessary to check for `points.size() >= 3` since the extra point space is always added thus the point should always be filled with valid attribute to avoid erroneous "closing stroke". Pull Request: https://projects.blender.org/blender/blender/pulls/119727