mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08: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