fix crash on datum point preselect

It is unclear why the coordinates are NULL. This fix prevents the crash but does not fix the reason why this unnormality occurs.
This commit is contained in:
Stefan Tröger 2015-07-06 20:51:13 +02:00
parent 7deb6393cc
commit de0768af80

View File

@ -112,6 +112,8 @@ void SoBrepPointSet::renderShape(const SoGLCoordinateElement * const coords,
int numindices)
{
const SbVec3f * coords3d = coords->getArrayPtr3();
if(coords3d == nullptr)
return;
int previ;
const int32_t *end = cindices + numindices;