]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix blinking of the tangency arc
authorazv <azv@opencascade.com>
Fri, 10 Jun 2016 04:52:47 +0000 (07:52 +0300)
committerazv <azv@opencascade.com>
Fri, 10 Jun 2016 04:52:47 +0000 (07:52 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp

index 90cb7e541094f56f4d7dcd627777c472ce353a70..f0aaaef9f35148a8879d018424575d11424e1d30 100644 (file)
@@ -717,7 +717,8 @@ void SketchPlugin_Arc::tangencyArcConstraints()
           (*aTIt)->attribute(SketchPlugin_Constraint::ENTITY_B()));
       ObjectPtr anOtherObject = aRefAttrA->object() == aThisArc ?
           aRefAttrB->object() : aRefAttrA->object();
-      if (anOtherPoint->owner() == anOtherObject) {
+      FeaturePtr anOtherFeature = ModelAPI_Feature::feature(anOtherObject);
+      if (anOtherPoint->owner() == anOtherFeature) {
         isFound = true;
         aPrevCoincidence = *aCIt;
         aPrevTangency = *aTIt;