]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Point should be initialized on start.
authornds <nds@opencascade.com>
Mon, 28 Dec 2015 12:17:46 +0000 (15:17 +0300)
committernds <nds@opencascade.com>
Mon, 28 Dec 2015 12:17:46 +0000 (15:17 +0300)
src/PartSet/PartSet_WidgetPoint2d.cpp

index 9e380d4319bd1727ccfea37a2a66de7a2e09e3d7..5793a383d78fb862242f28ef7751432e163e8909 100644 (file)
@@ -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()