From 6318e884de576d7fb8718e4c51c66b5ed73ec45a Mon Sep 17 00:00:00 2001 From: san Date: Thu, 16 Aug 2012 19:43:26 +0400 Subject: [PATCH] 0023385: Bug in AIS_TexturedShape::Compute() Mistake in AIS_TexturedShape::Compute() occurred in the patch for issue 22971 corrected --- src/AIS/AIS_TexturedShape.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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) {