diff --git a/src/AIS/AIS_InteractiveContext_1.cxx b/src/AIS/AIS_InteractiveContext_1.cxx index b18a84d52c..5cc781494a 100644 --- a/src/AIS/AIS_InteractiveContext_1.cxx +++ b/src/AIS/AIS_InteractiveContext_1.cxx @@ -245,16 +245,10 @@ AIS_StatusOfDetection AIS_InteractiveContext::MoveTo (const Standard_Integer th myLastPicked.Nullify(); } - if (toUpdateViewer) + if (toUpdateViewer + && theToRedrawOnUpdate) { - if (theToRedrawOnUpdate) - { - theView->Viewer()->Update(); - } - else - { - theView->Viewer()->Invalidate(); - } + theView->Viewer()->Update(); } mylastmoveview = theView;