From: vsv Date: Wed, 6 May 2020 18:47:22 +0000 (+0300) Subject: bos #19086: Do not clear pre-highlighting on selection of a sketcher object X-Git-Tag: V9_5_0b1~29^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aee76d38d792e112ce8465d22312f8a5601d4b0a;p=modules%2Fshaper.git bos #19086: Do not clear pre-highlighting on selection of a sketcher object --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 658743d57..052bdcdf9 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -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