From 12620e8f983d03617d0bc6292e880dd55119a9ff Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 19 May 2016 19:04:16 +0300 Subject: [PATCH] Issue #1496: The elements in the main object or in the tool object are not displayed Issue #1488: Select wire when Create face Workaround until we get fix for: 0027523: Selection owner contains obsolete shape --- src/XGUI/XGUI_Displayer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index be653fd0e..bc1bb7526 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -76,6 +76,8 @@ const int MOUSE_SENSITIVITY_IN_PIXEL = 10; ///< defines the local context mouse //#define DEBUG_OCCT_SHAPE_SELECTION +#define WORKAROUND_UNTIL_27523_IS_FIXED + void displayedObjects(const Handle(AIS_InteractiveContext)& theAIS, AIS_ListOfInteractive& theList) { // Get from null point @@ -332,8 +334,18 @@ bool XGUI_Displayer::redisplay(ObjectPtr theObject, bool theUpdateViewer) if (aNeedToRestoreSelection) myWorkshop->module()->storeSelection(); +#ifdef WORKAROUND_UNTIL_27523_IS_FIXED + if (!myActiveSelectionModes.contains(0)) + aContext->Activate(aAISIO, 0); +#endif + aContext->Redisplay(aAISIO, false); +#ifdef WORKAROUND_UNTIL_27523_IS_FIXED + if (!myActiveSelectionModes.contains(0)) + aContext->Deactivate(aAISIO, 0); +#endif + if (aNeedToRestoreSelection) myWorkshop->module()->restoreSelection(); -- 2.39.2