mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025629: Visualization, AIS_InteractiveContext - code clean up
Drop confusing method AIS_InteractiveContext::Clear() which is the same as ::Remove(). AIS_InteractiveContext::Display() - fix double viewer update on first display of presentation. AIS_InteractiveContext::DisplayedObjects() - fix objects retrieval from local contexts. AIS_InteractiveContext::Load() - do not bind object twice. Drop code blocks for debug output. Code clean up.
This commit is contained in:
@@ -241,7 +241,7 @@ Standard_EXPORT Standard_Boolean VDisplayAISObject (const TCollection_AsciiStrin
|
||||
Handle(AIS_InteractiveObject)::DownCast (aMap.Find2 (theName));
|
||||
|
||||
if (!anOldObj.IsNull())
|
||||
aContextAIS->Clear (anOldObj, Standard_True);
|
||||
aContextAIS->Remove (anOldObj, Standard_True);
|
||||
|
||||
// remove name and old object from map
|
||||
aMap.UnBind2 (theName);
|
||||
@@ -2751,7 +2751,7 @@ Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
|
||||
}
|
||||
else
|
||||
{
|
||||
anAISContext->Clear (anIO, Standard_False);
|
||||
anAISContext->Remove (anIO, Standard_False);
|
||||
aTexturedIO = new AIS_TexturedShape (DBRep::Get (theArgv[1]));
|
||||
GetMapOfAIS().UnBind1 (anIO);
|
||||
GetMapOfAIS().UnBind2 (aShapeName);
|
||||
|
Reference in New Issue
Block a user