}
const Standard_Integer aDispMode = theIObj->HasHilightMode() ? theIObj->HilightMode() : 0;
- unhighlightOwners (theIObj);
+ AIS_NListOfEntityOwner anOwners;
+ anOwners.Append(theIObj->GlobalSelOwner());
+ unhighlightOwners (anOwners);
myMainPM->SetVisibility (theIObj, aStatus->DisplayMode(), Standard_False);
if (!myLastPicked.IsNull()
AIS_StatusOfPick AIS_InteractiveContext::Select (const AIS_SelectionScheme theSelScheme)
{
// special case: single selection of detected owner - is it necessary ?
- /*if (myWasLastMain && !myLastinMain.IsNull() && !myAutoHilight &&
- (myLastinMain->IsSelected()
- && !myLastinMain->IsForcedHilight()
+ /*if (myWasLastMain && !myLastPicked.IsNull() && !myAutoHilight &&
+ (myLastPicked->IsSelected()
+ && !myLastPicked->IsForcedHilight()
&& NbSelected() <= 1))
{
- mySelection->selectOwner(myLastinMain, aPrevSelected, SelectionScheme (AIS_SelectionType_Select));
+ mySelection->selectOwner(myLastPicked, aPrevSelected, SelectionScheme (AIS_SelectionType_Select));
return getStatusOfPick (NbSelected());
}*/
AIS_NListOfEntityOwner aPickedOwners;
- aPickedOwners.Append (myLastinMain);
+ aPickedOwners.Append (myLastPicked);
return Select (aPickedOwners, theSelScheme);
}