From: nds Date: Mon, 28 Dec 2015 12:17:46 +0000 (+0300) Subject: Point should be initialized on start. X-Git-Tag: V_2.1.0~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6d0dd1afb192bbbc6b80a8e671adebb8cf005af;p=modules%2Fshaper.git Point should be initialized on start. --- diff --git a/src/PartSet/PartSet_WidgetPoint2d.cpp b/src/PartSet/PartSet_WidgetPoint2d.cpp index 9e380d431..5793a383d 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.cpp +++ b/src/PartSet/PartSet_WidgetPoint2d.cpp @@ -277,6 +277,12 @@ void PartSet_WidgetPoint2D::activateCustom() aModes << TopAbs_VERTEX; aModes << TopAbs_EDGE; myWorkshop->activateSubShapesSelection(aModes); + + if (!isEditingMode()) { + FeaturePtr aFeature = feature(); + if (aFeature.get() && aFeature->getKind() == SketchPlugin_Point::ID()) + storeValue(); + } } bool PartSet_WidgetPoint2D::canBeActivatedByMove()