X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_InteractiveContext.cxx;h=867005e249ef6e3bceef8b50e2e4f601f584fa4d;hp=c6c7f93d4e4cd40d150a3daf596074062d63ec69;hb=f2b63181108fe76fc0c48938337e0788ea56c532;hpb=7d46a9ed8b6d5c4e472fe5911b82802efaea6d61 diff --git a/src/AIS/AIS_InteractiveContext.cxx b/src/AIS/AIS_InteractiveContext.cxx index c6c7f93d4e..867005e249 100644 --- a/src/AIS/AIS_InteractiveContext.cxx +++ b/src/AIS/AIS_InteractiveContext.cxx @@ -449,7 +449,7 @@ void AIS_InteractiveContext::Display (const Handle(AIS_InteractiveObject)& theIO return; } - // Erase presentations for all display modes different from aDispMode. + // Mark the presentation modes hidden of interactive object different from aDispMode. // Then make sure aDispMode is displayed and maybe highlighted. // Finally, activate selection mode if not yet activated. TColStd_ListOfInteger aModesToRemove; @@ -463,7 +463,7 @@ void AIS_InteractiveContext::Display (const Handle(AIS_InteractiveObject)& theIO { myMainPM->Unhighlight (theIObj, anOldMode); } - myMainPM->Erase (theIObj, anOldMode); + myMainPM->SetVisibility (theIObj, anOldMode, Standard_False); } }