Polyline rendering after all points have been removed
So I'm drawing a Polyline with the mouse, and when releasing the mouse I do
_poly.SetPoints(Array.Empty())
to remove all points, but the polyline is not updated. I have tried setting
_poly.meshOutOfDate = true
but this make no difference.
[...]
Ok so I figured it out. Polyline does not redraw unless there is "valid points", meaning at least two points in the array. I have to disable the Polyline, and re-enable it only when I have at least two points.
Would make more sense for me that setting `points` array to 0 or 1 element would remove anything draw earlier.
this has now been fixed as of 4.4.0