]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Merge branch 'master' of newgeom:newgeom.git
authorsbh <sergey.belash@opencascade.com>
Thu, 22 May 2014 17:07:40 +0000 (21:07 +0400)
committersbh <sergey.belash@opencascade.com>
Thu, 22 May 2014 17:07:40 +0000 (21:07 +0400)
1  2 
src/ModuleBase/ModuleBase_Operation.cpp
src/ModuleBase/ModuleBase_Operation.h
src/PartSet/PartSet_Module.cpp
src/XGUI/XGUI_Workshop.cpp

Simple merge
index d052adf9e0e8b385b65b9fc912775ee9c40bf820,606c5789966eee02a806b0a68e020ab71126e0ed..23231b3dc15b398ff57351c1c6d2e83440360fec
@@@ -173,10 -179,12 +179,12 @@@ void PartSet_Module::onLaunchOperation(
    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);
  }
  
Simple merge