From: nds Date: Wed, 16 Dec 2015 11:57:29 +0000 (+0300) Subject: #1098 Create fillet problem X-Git-Tag: V_2.1.0~171 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da217c5cdd36363a5ac5021fae549f2c074b4a45;p=modules%2Fshaper.git #1098 Create fillet problem --- diff --git a/src/PartSet/PartSet_WidgetPoint2d.cpp b/src/PartSet/PartSet_WidgetPoint2d.cpp index ccc53c217..9c7f6b1e5 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.cpp +++ b/src/PartSet/PartSet_WidgetPoint2d.cpp @@ -144,6 +144,7 @@ bool PartSet_WidgetPoint2D::setSelection(QList& 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();