From: san Date: Thu, 16 Aug 2012 15:43:26 +0000 (+0400) Subject: 0023385: Bug in AIS_TexturedShape::Compute() X-Git-Tag: V6_5_4_beta1~68 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=6318e884de576d7fb8718e4c51c66b5ed73ec45a;p=occt-copy.git 0023385: Bug in AIS_TexturedShape::Compute() Mistake in AIS_TexturedShape::Compute() occurred in the patch for issue 22971 corrected --- diff --git a/src/AIS/AIS_TexturedShape.cxx b/src/AIS/AIS_TexturedShape.cxx index 86c96c958f..2fc46b43f7 100755 --- a/src/AIS/AIS_TexturedShape.cxx +++ b/src/AIS/AIS_TexturedShape.cxx @@ -274,13 +274,12 @@ void AIS_TexturedShape::Compute (const Handle(PrsMgr_PresentationManager3d)& /*t Standard_Real prevcoeff; Standard_Real newcoeff; - if (!OwnDeviationAngle (newangle, prevangle) && !OwnDeviationCoefficient (newcoeff, prevcoeff)) + if (OwnDeviationAngle (newangle, prevangle) || OwnDeviationCoefficient (newcoeff, prevcoeff)) { - break; - } - if (Abs (newangle - prevangle) > Precision::Angular() || Abs (newcoeff - prevcoeff) > Precision::Confusion()) - { - BRepTools::Clean (myshape); + if (Abs (newangle - prevangle) > Precision::Angular() || Abs (newcoeff - prevcoeff) > Precision::Confusion()) + { + BRepTools::Clean (myshape); + } } if (myshape.ShapeType() > TopAbs_FACE) {