]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Merge remote-tracking branch 'origin/PortingSalome760' into Dev_1.3.0
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 4 Jun 2015 13:49:04 +0000 (16:49 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 4 Jun 2015 13:49:04 +0000 (16:49 +0300)
1  2 
src/XGUI/XGUI_Displayer.cpp

index a3d8b3f9fd86f34a40a9640bf73479077397a2ac,844473e788626226546fe24bc6b629f2038b5c37..19da29c51b8a0764f19e6e33d66ad7383c7a2657
@@@ -149,31 -149,15 +149,17 @@@ void XGUI_Displayer::display(ObjectPtr 
    if (!anAISIO.IsNull()) {
      appendResultObject(theObject, theAIS);
  
-     bool aCanBeShaded = ::canBeShaded(anAISIO);
-     // In order to avoid extra closing/opening context
-     SelectMgr_IndexedMapOfOwner aSelectedOwners;
-     if (aCanBeShaded) {
-       myWorkshop->selector()->selection()->selectedOwners(aSelectedOwners);
-       closeLocalContexts(false);
-     }
-     aContext->Display(anAISIO, false);
-     aContext->SetDisplayMode(anAISIO, isShading? Shading : Wireframe, false);
+     bool isCustomized = customizeObject(theObject);
 -    aContext->Display(anAISIO, isShading? Shading : Wireframe, 0, false, true, AIS_DS_Displayed); 
++    int aDispMode = isShading? Shading : Wireframe;
      if (isShading)
        anAISIO->Attributes()->SetFaceBoundaryDraw( Standard_True );
--    emit objectDisplayed(theObject, theAIS);
++    anAISIO->SetDisplayMode(aDispMode);
++    aContext->Display(anAISIO, aDispMode, 0, false, true, AIS_DS_Displayed); 
  
-     bool isCustomized = customizeObject(theObject);
-     if (isCustomized)
-       aContext->Redisplay(anAISIO, false);
-     if (aCanBeShaded) {
-       openLocalContext();
-       activateObjects(myActiveSelectionModes);
-       myWorkshop->selector()->setSelectedOwners(aSelectedOwners, false);
-     }
-     else
-       activate(anAISIO, myActiveSelectionModes);
-  }
++    emit objectDisplayed(theObject, theAIS);
+     activate(anAISIO, myActiveSelectionModes);
+  } 
    if (isUpdateViewer)
      updateViewer();
  }