We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b05ec0 + 602a429 commit 6ede563Copy full SHA for 6ede563
components/sceneutil/pathgridutil.cpp
@@ -126,9 +126,9 @@ namespace SceneUtil
126
127
gridGeometry->setVertexArray(vertices);
128
gridGeometry->setColorArray(colors, osg::Array::BIND_PER_VERTEX);
129
- if (pointIndexCount)
+ if (!pointIndices->empty())
130
gridGeometry->addPrimitiveSet(pointIndices);
131
- if (edgeIndexCount)
+ if (!lineIndices->empty())
132
gridGeometry->addPrimitiveSet(lineIndices);
133
gridGeometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
134
}
0 commit comments