From c0178b0aa379133b84daab5a05965ac2f71dac07 Mon Sep 17 00:00:00 2001 From: abd Date: Tue, 22 Nov 2005 14:21:48 +0000 Subject: [PATCH] Fixed unused flag in deleteObject method --- src/GLViewer/GLViewer_Context.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GLViewer/GLViewer_Context.cxx b/src/GLViewer/GLViewer_Context.cxx index ef4f57850..7fc5fcf20 100644 --- a/src/GLViewer/GLViewer_Context.cxx +++ b/src/GLViewer/GLViewer_Context.cxx @@ -679,7 +679,8 @@ void GLViewer_Context::deleteObject( GLViewer_Object* theObject, bool updateView if( myLastPicked == theObject ) myLastPicked = 0; - myGLViewer2d->updateAll(); + if ( updateViewer ) + myGLViewer2d->updateAll(); } //======================================================================= -- 2.39.2