if (!aViewer->isMultiSelectionEnabled()) {
aViewer->enableMultiselection(true);
}
- aViewer->AISContext()->MoveTo(theEvent->x(), theEvent->y(), theWnd->v3dView());
- if (theEvent->modifiers() & Qt::ShiftModifier)
- aViewer->AISContext()->ShiftSelect();
- else
- aViewer->AISContext()->Select();
+ //aViewer->AISContext()->MoveTo(theEvent->x(), theEvent->y(), theWnd->v3dView());
+ //if (theEvent->modifiers() & Qt::ShiftModifier)
+ // aViewer->AISContext()->ShiftSelect();
+ //else
+ // aViewer->AISContext()->Select();
}
void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
Handle(AIS_InteractiveContext) aContext = AISContext();
if (aContext.IsNull())
return;
- aContext->Redisplay(aAISIO, isUpdateViewer);
+ bool aToSelect = aContext->IsSelected(aAISIO);
+ aContext->Redisplay(aAISIO, false);
+ // Restore selection state after redisplay
+ if (aToSelect)
+ aContext->SetSelected(aAISIO);
+ if (isUpdateViewer)
+ updateViewer();
}
}