[Meh] Gui: remove unnecessary Boolean comparisons
This commit is contained in:
@@ -565,7 +565,7 @@ void SoFCIndexedFaceSet::drawFaces(SoGLRenderAction *action)
|
||||
SbBool mode = Gui::SoFCInteractiveElement::get(state);
|
||||
|
||||
unsigned int num = this->coordIndex.getNum()/4;
|
||||
if (mode == false || num <= this->renderTriangleLimit) {
|
||||
if (!mode || num <= this->renderTriangleLimit) {
|
||||
#ifdef RENDER_GLARRAYS
|
||||
SoMaterialBindingElement::Binding matbind =
|
||||
SoMaterialBindingElement::get(state);
|
||||
|
||||
@@ -649,7 +649,7 @@ void SoFCMeshObjectShape::GLRender(SoGLRenderAction *action)
|
||||
if (SoShapeHintsElement::getVertexOrdering(state) == SoShapeHintsElement::CLOCKWISE)
|
||||
ccw = false;
|
||||
|
||||
if (mode == false || mesh->countFacets() <= this->renderTriangleLimit) {
|
||||
if (!mode || mesh->countFacets() <= this->renderTriangleLimit) {
|
||||
if (mbind != OVERALL) {
|
||||
drawFaces(mesh, &mb, mbind, needNormals, ccw);
|
||||
}
|
||||
@@ -1303,7 +1303,7 @@ void SoFCMeshSegmentShape::GLRender(SoGLRenderAction *action)
|
||||
if (SoShapeHintsElement::getVertexOrdering(state) == SoShapeHintsElement::CLOCKWISE)
|
||||
ccw = false;
|
||||
|
||||
if (mode == false || mesh->countFacets() <= this->renderTriangleLimit) {
|
||||
if (!mode || mesh->countFacets() <= this->renderTriangleLimit) {
|
||||
if (mbind != OVERALL)
|
||||
drawFaces(mesh, &mb, mbind, needNormals, ccw);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user