Handle(AIS_InteractiveObject) anAISIO = theAIS->impl<Handle(AIS_InteractiveObject)>();
if (!anAISIO.IsNull()) {
myResult2AISObjectMap[theObject] = theAIS;
- bool aCanBeShaded = canBeShaded(anAISIO);
+ bool aCanBeShaded = ::canBeShaded(anAISIO);
// In order to avoid extra closing/opening context
- if (aCanBeShaded)
+ SelectMgr_IndexedMapOfOwner aSelectedOwners;
+ if (aCanBeShaded) {
+ myWorkshop->selector()->selection()->selectedOwners(aSelectedOwners);
closeLocalContexts(false);
+ }
aContext->Display(anAISIO, false);
qDebug("### Display %i", (long)anAISIO.Access());