From ab01eb291027ab15024bc17a365b65843f0563e7 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 26 Feb 2015 16:50:18 +0300 Subject: [PATCH] A correction to do not create excessive coincidence constraint --- src/PartSet/PartSet_Tools.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PartSet/PartSet_Tools.cpp b/src/PartSet/PartSet_Tools.cpp index e32410baf..d77f86d1e 100644 --- a/src/PartSet/PartSet_Tools.cpp +++ b/src/PartSet/PartSet_Tools.cpp @@ -361,6 +361,8 @@ void PartSet_Tools::setConstraints(CompositeFeaturePtr theSketch, FeaturePtr the new GeomAPI_Pnt2d(theClickedX, theClickedY)); for (; anIt != aLast; anIt++) { FeaturePtr aFeature = std::dynamic_pointer_cast(*anIt); + if (theFeature == aFeature) + continue; // find the given point in the feature attributes anAttiributes = aFeature->data()->attributes(GeomDataAPI_Point2D::type()); std::list >::const_iterator anIt = anAttiributes.begin(), -- 2.39.2