]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #19086: Do not clear pre-highlighting on selection of a sketcher object
authorvsv <vsv@opencascade.com>
Wed, 6 May 2020 18:47:22 +0000 (21:47 +0300)
committervsv <vsv@opencascade.com>
Wed, 6 May 2020 18:47:36 +0000 (21:47 +0300)
src/XGUI/XGUI_Displayer.cpp

index 658743d57f7a297132c8367e9bc4158cac01ebb8..052bdcdf94b5b96e12db72c23036c8d3eebbbea7 100644 (file)
@@ -323,11 +323,11 @@ bool XGUI_Displayer::redisplay(ObjectPtr theObject, bool theUpdateViewer)
       if (!aResPrs.IsNull())
         aResPrs->updateIsoLines();
     }
-    myWorkshop->module()->storeSelection();
+    //myWorkshop->module()->storeSelection();
 
-#ifdef CLEAR_OUTDATED_SELECTION_BEFORE_REDISPLAY
-    myWorkshop->selector()->deselectPresentation(aAISIO);
-#endif
+//#ifdef CLEAR_OUTDATED_SELECTION_BEFORE_REDISPLAY
+    //myWorkshop->selector()->deselectPresentation(aAISIO);
+//#endif
 
     if (aContext->IsDisplayed(aAISIO))
       aContext->Redisplay(aAISIO, false);
@@ -339,7 +339,7 @@ bool XGUI_Displayer::redisplay(ObjectPtr theObject, bool theUpdateViewer)
       #endif
 
       //if (aNeedToRestoreSelection)
-    myWorkshop->module()->restoreSelection();
+    //myWorkshop->module()->restoreSelection();
 
     aRedisplayed = true;
     #ifdef DEBUG_FEATURE_REDISPLAY