Flint: Fix shape selection
Closes #3251 (closed)
The shape selection was not clearing the items at the end.
As result after many calls, many shapes was stacked into the plot. Maybe until a new scan.
This MR fixes this behaviour.
Edited by Valentin Valls