]> OCCT Git - occt.git/commitdiff
small fix
authordkulikov <dkulikov@opencascade.com>
Mon, 23 Sep 2024 18:20:05 +0000 (18:20 +0000)
committerdkulikov <dkulikov@opencascade.com>
Mon, 23 Sep 2024 18:20:05 +0000 (18:20 +0000)
src/STEPConstruct/STEPConstruct_Styles.cxx

index ca897a11903dc417a1f480a8499d649981815829..50518d23f7da02d4ad0918e101ec66480f33ab60 100644 (file)
@@ -213,8 +213,8 @@ namespace
       // SurfaceStyleFillArea, SurfaceStyleBoundary, SurfaceStyleRendering.
       // So we're using && operator to stop as soon as this type is processed.
       ProcessAsSurfaceStyleFillArea(aSSES, aSSU->Side(), theSurfaceColour)
-        && ProcessAsSurfaceStyleBoundary(aSSES, theBoundaryColour)
-        && ProcessAsSurfaceStyleRendering(aSSES, theRenderColour, theRenderTransparency);
+        || ProcessAsSurfaceStyleBoundary(aSSES, theBoundaryColour)
+        || ProcessAsSurfaceStyleRendering(aSSES, theRenderColour, theRenderTransparency);
     }
     return Standard_True;
   }
@@ -799,7 +799,7 @@ Standard_Boolean STEPConstruct_Styles::GetColors(const Handle(StepVisual_StyledI
                                  theBoundaryColour,
                                  theRenderColour,
                                  theRenderTransparency)
-        && ProcessAsCurveStyle(aPSS, theCurveColour);
+        || ProcessAsCurveStyle(aPSS, theCurveColour);
     }
   }
   return !theSurfaceColour.IsNull() || !theBoundaryColour.IsNull() || !theCurveColour.IsNull()