mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0033066: Visualization - null pointer dereference in MeshVS_ElementalColorPrsBuilder::Build() function
Added missing Boolean flag check.
This commit is contained in:
@@ -625,7 +625,10 @@ void MeshVS_ElementalColorPrsBuilder::Build ( const Handle(Prs3d_Presentation)&
|
||||
}
|
||||
|
||||
aGroup2->AddPrimitiveArray (aFaceTriangles);
|
||||
aSGroup->AddPrimitiveArray (anEdgeSegments);
|
||||
if (anEdgeOn)
|
||||
{
|
||||
aSGroup->AddPrimitiveArray (anEdgeSegments);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user