{
if (mylastindex != 0 && mylastindex <= myMapOfOwner.Extent())
{
+ myMainPM->ClearImmediateDraw();
Unhilight (myMapOfOwner (mylastindex), theView);
if (theToRedrawImmediate)
{
if(myAutoHilight)
{
+ myMainPM->ClearImmediateDraw();
const Handle(V3d_Viewer)& aViewer = myCTX->CurrentViewer();
for (aViewer->InitActiveViews(); aViewer->MoreActiveViews(); aViewer->NextActiveViews())
{
return;
}
- myMainPM->ClearImmediateDraw();
const Standard_Integer aHilightMode = GetHiMod (Handle(AIS_InteractiveObject)::DownCast (theOwner->Selectable()));
if (IsSelected (theOwner))
{
myMapOfOwner.Clear();
myMapOfOwner.Assign (anOwnersToKeep);
mylastindex = myMapOfOwner.FindIndex (aLastPicked);
+ if (!IsValidIndex (mylastindex))
+ {
+ myMainPM->ClearImmediateDraw();
+ }
if (!isAISRemainsDetected)
{
{
if (thePickOwner.IsNull())
{
+ myMainPM->ClearImmediateDraw();
if (theToRedrawImmediate)
{
theView->RedrawImmediate();
if (aNewIndex != mylastindex
|| thePickOwner->IsForcedHilight())
{
+ myMainPM->ClearImmediateDraw();
if (mylastindex != 0
&& mylastindex <= myMapOfOwner.Extent())
{
mylastindex = aNewIndex;
}
- if (mylastindex)
+ if (mylastindex != 0)
{
mylastgood = mylastindex;
}