]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1690: Avoid using points from the same object for coincidence creation
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 31 Aug 2016 12:56:57 +0000 (15:56 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 31 Aug 2016 12:57:11 +0000 (15:57 +0300)
src/PartSet/PartSet_Tools.cpp

index 6639c3aa91b49353ce3b376befe29b8153896c81..12cb7a9a4a4f2c4c8e284e0323cfbbafc900e8ad 100755 (executable)
@@ -386,7 +386,7 @@ void PartSet_Tools::setConstraints(CompositeFeaturePtr theSketch, FeaturePtr the
   std::list<std::shared_ptr<ModelAPI_Attribute> > anAttiributes;
   for (; anIt != aLast; anIt++) {
     FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(*anIt);
-    if (!aFeature.get() || theFeature == aFeature)
+    if (!aFeature.get() || (theFeature == aFeature) || (aFeaturePoint->owner() == aFeature))
       continue;
     std::shared_ptr<GeomDataAPI_Point2D> aFPoint = PartSet_Tools::findFirstEqualPoint(aFeature,
                                                                                 aClickedPoint);