Download

Draw Line - Still Draws points from Widget After Removal

I have a BP that uses the Draw Line in the On Paint function override and it works fine by using an array of 2D vectors created externally to the On Paint function within the widgets Event Graph.

The issue appears after I remove the widget from parent and after recreating the widget and repopulate the array, when I examine the array in the Event Graph it has the correct number of entries but in the On Paint function it still has the previous entries and simply adds the new entries into the array.

If I clear the array before use either inside the On Paint or in the Event Graph, the On Paint function still sees all values in the array.

Ideas as to why the points still remain within the array