Salome HOME
Roll back the improvement for third arc point coordinates input in property panel...
authormpv <mpv@opencascade.com>
Tue, 15 Sep 2015 13:55:57 +0000 (16:55 +0300)
committermpv <mpv@opencascade.com>
Tue, 15 Sep 2015 13:55:57 +0000 (16:55 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp

index 9de0fc49b97dc5851cf50f116c523120b22ac3af..f8042bada9694a5f21c22941a8f3054e8a919d22 100644 (file)
@@ -259,6 +259,7 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID)
     std::shared_ptr<GeomAPI_Pnt2d> aProjection = aCircleForArc->project(anEndAttr->pnt());
     if (aProjection && anEndAttr->pnt()->distance(aProjection) > tolerance) {
       // issue #855: trying to update only not-updated coordinate if it is possible
+      /*
       if (abs(myXEndBefore - anEndAttr->x()) < 1.e-10) { // keep Y unchanged
         double aVy = aCenterAttr->y() - anEndAttr->y();
         double aVy2 = aVy * aVy;
@@ -283,7 +284,7 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID)
             aProjection->setY(aCenterAttr->y() - aDY);
           aProjection->setX(anEndAttr->x());
         }
-      }
+      }*/
 
       anEndAttr->setValue(aProjection);
     }