From 825cc5e45152c4171578e400a01af57db648c651 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 18 Mar 2009 16:27:29 +0000 Subject: [PATCH] Minor change --- src/GLViewer/GLViewer_Context.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GLViewer/GLViewer_Context.cxx b/src/GLViewer/GLViewer_Context.cxx index 984e53726..569f70ad8 100644 --- a/src/GLViewer/GLViewer_Context.cxx +++ b/src/GLViewer/GLViewer_Context.cxx @@ -686,6 +686,10 @@ void GLViewer_Context::deleteObject( GLViewer_Object* theObject, bool updateView if( myLastPicked == theObject ) myLastPicked = 0; + theObject->unhighlight(); + theObject->unselect(); + theObject->setVisible( false ); + if ( updateViewer ) myGLViewer2d->updateAll(); } -- 2.39.2