From: vsv Date: Wed, 31 Aug 2016 12:56:57 +0000 (+0300) Subject: Issue #1690: Avoid using points from the same object for coincidence creation X-Git-Tag: V_2.5.0~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0efcfd28cc5c7039350d37314b5446c5a29bd727;p=modules%2Fshaper.git Issue #1690: Avoid using points from the same object for coincidence creation --- diff --git a/src/PartSet/PartSet_Tools.cpp b/src/PartSet/PartSet_Tools.cpp index 6639c3aa9..12cb7a9a4 100755 --- a/src/PartSet/PartSet_Tools.cpp +++ b/src/PartSet/PartSet_Tools.cpp @@ -386,7 +386,7 @@ void PartSet_Tools::setConstraints(CompositeFeaturePtr theSketch, FeaturePtr the std::list > anAttiributes; for (; anIt != aLast; anIt++) { FeaturePtr aFeature = std::dynamic_pointer_cast(*anIt); - if (!aFeature.get() || theFeature == aFeature) + if (!aFeature.get() || (theFeature == aFeature) || (aFeaturePoint->owner() == aFeature)) continue; std::shared_ptr aFPoint = PartSet_Tools::findFirstEqualPoint(aFeature, aClickedPoint);