From 0efcfd28cc5c7039350d37314b5446c5a29bd727 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 31 Aug 2016 15:56:57 +0300 Subject: [PATCH] Issue #1690: Avoid using points from the same object for coincidence creation --- src/PartSet/PartSet_Tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2