From 2eea6525af4fedc52ec0475579c5cdec0a95bc3c Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 24 Aug 2015 18:00:04 +0300 Subject: [PATCH] 0026594: Visualization - AIS_InteractiveContext::MoveTo() should not invalidate the Viewer within immediate mode --- src/AIS/AIS_InteractiveContext_1.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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;