[Meh] Gui: remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-19 18:00:46 +02:00
parent f67c2be7fa
commit c78775163e
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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