1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027916: Visualization - access violation occurs within AIS_ColoredShape::Compute() for NULL shape

AIS_ColoredShape::Compute() - add NULL shape check.
AIS presentations - removed redundant clearance within ::Compute()
which is always done in advance within PrsMgr_PresentationManager::Update().
This commit is contained in:
kgv
2016-09-28 20:18:25 +03:00
committed by apn
parent b2bafb33a9
commit ede89abcb9
30 changed files with 5 additions and 56 deletions

View File

@@ -299,7 +299,11 @@ void AIS_ColoredShape::Compute (const Handle(PrsMgr_PresentationManager3d)& ,
const Handle(Prs3d_Presentation)& thePrs,
const Standard_Integer theMode)
{
thePrs->Clear();
if (myshape.IsNull())
{
return;
}
if (IsInfinite())
{
thePrs->SetInfiniteState (Standard_True);