Ensure that the representation is removed from renderer
Disabling the widget ensures that the current renderer is set to nullptr in vtkAbstractWidget. However, some widgets may still keep their representation in the renderer. This change ensures that the representation is removed when the widget is destroyed irrespective of whether the current renderer is set on the widget.
Showing with 3 additions and 2 deletions