//#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
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();