1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0027883: Visualization - AIS_InteractiveContext::IsDisplayed() does not return displayed state for specified Display Mode

This commit is contained in:
kgv 2016-09-26 11:38:18 +03:00
parent ece3f95012
commit b2bafb33a9

View File

@ -1058,7 +1058,7 @@ Standard_Boolean AIS_InteractiveContext::IsDisplayed (const Handle(AIS_Interacti
{
Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj);
if (aStatus->GraphicStatus() == AIS_DS_Displayed
&& theIObj->DisplayMode() == theMode)
&& aStatus->DisplayMode() == theMode)
{
return Standard_True;
}
@ -1541,6 +1541,7 @@ void AIS_InteractiveContext::SetDisplayMode (const Handle(AIS_InteractiveObject)
Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj);
if (aStatus->GraphicStatus() != AIS_DS_Displayed)
{
aStatus->SetDisplayMode (theMode);
theIObj->SetDisplayMode (theMode);
return;
}