Salome HOME
0021883 [CEA 674] Deactivate pre-selection in OCC and VTK viewer
[modules/gui.git] / src / SVTK / SVTK_InteractorStyle.cxx
index ea8c11bd3a30d85a7a09ef3c9b86a6e79a53f384..831110451d9aeb7c7db6995775059556a55869d1 100644 (file)
@@ -1298,6 +1298,9 @@ void SVTK_InteractorStyle::onOperation(QPoint mousePos)
 */
 void SVTK_InteractorStyle::onCursorMove(QPoint mousePos) 
 {
+  if ( !GetSelector()->IsPreSelectionEnabled() ) 
+    return;
+
   // processing highlighting
   SVTK_SelectionEvent* aSelectionEvent = GetSelectionEventFlipY();
   this->FindPokedRenderer(aSelectionEvent->myX,aSelectionEvent->myY);