The second remove from parent is just a safety step. The editor complained about adding to the viewport multiple times, so I placed it there, just to really be sure that the previous view of the widget was removed :).
The second remove from parent is just a safety step. The editor complained about adding to the viewport multiple times, so I placed it there, just to really be sure that the previous view of the widget was removed :).