Salome HOME
Fix incorrect processing Tangent features in case the extremity coincidence between...
authorazv <azv@opencascade.com>
Fri, 5 May 2017 07:04:44 +0000 (10:04 +0300)
committerazv <azv@opencascade.com>
Fri, 5 May 2017 07:04:44 +0000 (10:04 +0300)
src/SketchSolver/SketchSolver_ConstraintTangent.cpp

index 0bc96168e6880ae6036d54b4b863af10501dc555..ff72f310dc99ae5ce40d3a41f87a6c9fb85971fa 100644 (file)
@@ -185,8 +185,10 @@ void SketchSolver_ConstraintTangent::notify(const FeaturePtr&      theFeature,
       if (aNbCoincidentFeatures == 2)
         isRebuild = true;
     }
-  } else if (mySharedPoint) {
-    // The features are tangent in the shared point, but the coincidence has been removed.
+  }
+
+  if (mySharedPoint && !isRebuild) {
+    // The features are tangent in the shared point, but the coincidence has been removed/updated.
     // Check if the coincidence is the same.
     std::list<AttributePtr> aCoincidentPoints = coincidentBoundaryPoints(aTgFeat1, aTgFeat2);
     isRebuild = true;