From: kgv Date: Mon, 24 Aug 2015 15:00:04 +0000 (+0300) Subject: 0026594: Visualization - AIS_InteractiveContext::MoveTo() should not invalidate the... X-Git-Tag: V7_0_0_beta~341 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2eea6525af4fedc52ec0475579c5cdec0a95bc3c;p=occt.git 0026594: Visualization - AIS_InteractiveContext::MoveTo() should not invalidate the Viewer within immediate mode --- 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;