]> OCCT Git - occt.git/commitdiff
0026594: Visualization - AIS_InteractiveContext::MoveTo() should not invalidate the...
authorkgv <kgv@opencascade.com>
Mon, 24 Aug 2015 15:00:04 +0000 (18:00 +0300)
committerski <ski@opencascade.com>
Thu, 27 Aug 2015 10:37:05 +0000 (13:37 +0300)
src/AIS/AIS_InteractiveContext_1.cxx

index b18a84d52c8ab2b02172b418a1641667de5156ab..5cc781494aed370cc2d1c130c5b48179d69929af 100644 (file)
@@ -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;