Mesh: PR6497 move return statement to new line
This commit is contained in:
@@ -81,9 +81,11 @@ void SoPolygon::GLRender(SoGLRenderAction *action)
|
||||
{
|
||||
SoState* state = action->getState();
|
||||
const SoCoordinateElement * coords = SoCoordinateElement::getInstance(state);
|
||||
if (!coords) return;
|
||||
if (!coords)
|
||||
return;
|
||||
const SbVec3f * points = coords->getArrayPtr3();
|
||||
if (!points) return;
|
||||
if (!points)
|
||||
return;
|
||||
|
||||
SoMaterialBundle mb(action);
|
||||
SoTextureCoordinateBundle tb(action, true, false);
|
||||
@@ -145,9 +147,11 @@ void SoPolygon::computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er)
|
||||
{
|
||||
SoState* state = action->getState();
|
||||
const SoCoordinateElement * coords = SoCoordinateElement::getInstance(state);
|
||||
if (!coords) return;
|
||||
if (!coords)
|
||||
return;
|
||||
const SbVec3f * points = coords->getArrayPtr3();
|
||||
if (!points) return;
|
||||
if (!points)
|
||||
return;
|
||||
float maxX=-FLT_MAX, minX=FLT_MAX,
|
||||
maxY=-FLT_MAX, minY=FLT_MAX,
|
||||
maxZ=-FLT_MAX, minZ=FLT_MAX;
|
||||
|
||||
Reference in New Issue
Block a user