]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1098 Create fillet problem
authornds <nds@opencascade.com>
Wed, 16 Dec 2015 11:57:29 +0000 (14:57 +0300)
committernds <nds@opencascade.com>
Wed, 16 Dec 2015 11:57:56 +0000 (14:57 +0300)
src/PartSet/PartSet_WidgetPoint2d.cpp

index ccc53c217e1eefce0e9b284d59277496c0690a80..9c7f6b1e5dc8cfff6d31584874299760d1e54c18 100644 (file)
@@ -144,6 +144,7 @@ bool PartSet_WidgetPoint2D::setSelection(QList<ModuleBase_ViewerPrs>& theValues,
     double aX, aY;
     if (getPoint2d(aView, aShape, aX, aY)) {
       isDone = setPoint(aX, aY);
+      PartSet_Tools::setConstraints(mySketch, feature(), attributeID(), aX, aY);
     }
   }
   else if (canBeActivatedByMove()) {
@@ -378,7 +379,8 @@ void PartSet_WidgetPoint2D::onMouseRelease(ModuleBase_IViewWindow* theWnd, QMous
         else {
           if (getPoint2d(aView, aShape, aX, aY))
             setPoint(aX, aY);
-          bool anOrphanPoint = isOrphanPoint(aSelectedFeature, mySketch, aX, aY);
+          bool anOrphanPoint = aShape.ShapeType() == TopAbs_VERTEX ||
+                               isOrphanPoint(aSelectedFeature, mySketch, aX, aY);
           setConstraintWith(aObject);
           if (!anOrphanPoint)
             emit vertexSelected();