mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
CCAR: problem with an endless loop in getAIS
This commit is contained in:
parent
10e23ee67f
commit
08ccaeae90
@ -395,7 +395,7 @@ Handle(AIS_InteractiveObject) GEOMBase::GetAIS( const Handle(SALOME_InteractiveO
|
||||
anIC->ObjectsInCollector( displayed );
|
||||
|
||||
AIS_ListIteratorOfListOfInteractive it( displayed );
|
||||
while ( it.More() && aisObject.IsNull() ) {
|
||||
for ( ; it.More(); it.Next() ){
|
||||
if ( onlyGeom && !it.Value()->IsInstance( STANDARD_TYPE(GEOM_AISShape) ) )
|
||||
continue;
|
||||
|
||||
@ -403,7 +403,10 @@ Handle(AIS_InteractiveObject) GEOMBase::GetAIS( const Handle(SALOME_InteractiveO
|
||||
Handle(SALOME_InteractiveObject)::DownCast( it.Value()->GetOwner() );
|
||||
|
||||
if ( !obj.IsNull() && obj->isSame( IO ) )
|
||||
{
|
||||
aisObject = it.Value();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( !aisObject.IsNull() ) break;
|
||||
|
@ -383,8 +383,8 @@ void GEOMToolsGUI::OnColor()
|
||||
anObject->SetColor( aSColor );
|
||||
anObject->SetAutoColor( false );
|
||||
}
|
||||
} // for
|
||||
GeometryGUI::Modified();
|
||||
}
|
||||
} // if c.isValid()
|
||||
} // first IO is not null
|
||||
} // if ( isOCC )
|
||||
|
Loading…
Reference in New Issue
Block a user