PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(anOperation);
if (aPreviewOp)
{
- std::list<XGUI_ViewerPrs> aPresentations = myWorkshop->displayer()->GetViewerPrs();
- aPreviewOp->init(theFeature, aPresentations);
+ XGUI_Displayer* aDisplayer = myWorkshop->displayer();
+ std::list<XGUI_ViewerPrs> aSelected = aDisplayer->GetSelected();
+ std::list<XGUI_ViewerPrs> aHighlighted = aDisplayer->GetHighlighted();
+ aPreviewOp->init(theFeature, aSelected, aHighlighted);
}
- myWorkshop->actionsMgr()->setActionChecked(anOperation->getDescription()->operationId(), true);
+ myWorkshop->actionsMgr()->updateCheckState();
sendOperation(anOperation);
}