`get_count_input_from_length()` did not check whether length is zero, this would cause division by zero exception. Now will return a segment count of 1 when a zero length is given. Pull Request: https://projects.blender.org/blender/blender/pulls/124440