mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0027883: Visualization - AIS_InteractiveContext::IsDisplayed() does not return displayed state for specified Display Mode
This commit is contained in:
parent
ece3f95012
commit
b2bafb33a9
@ -1058,7 +1058,7 @@ Standard_Boolean AIS_InteractiveContext::IsDisplayed (const Handle(AIS_Interacti
|
|||||||
{
|
{
|
||||||
Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj);
|
Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj);
|
||||||
if (aStatus->GraphicStatus() == AIS_DS_Displayed
|
if (aStatus->GraphicStatus() == AIS_DS_Displayed
|
||||||
&& theIObj->DisplayMode() == theMode)
|
&& aStatus->DisplayMode() == theMode)
|
||||||
{
|
{
|
||||||
return Standard_True;
|
return Standard_True;
|
||||||
}
|
}
|
||||||
@ -1541,6 +1541,7 @@ void AIS_InteractiveContext::SetDisplayMode (const Handle(AIS_InteractiveObject)
|
|||||||
Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj);
|
Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj);
|
||||||
if (aStatus->GraphicStatus() != AIS_DS_Displayed)
|
if (aStatus->GraphicStatus() != AIS_DS_Displayed)
|
||||||
{
|
{
|
||||||
|
aStatus->SetDisplayMode (theMode);
|
||||||
theIObj->SetDisplayMode (theMode);
|
theIObj->SetDisplayMode (theMode);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user