Salome HOME
refs #78: reported by Hervé Legrand: do not create segment if mouse moved out of...
[modules/shaper.git] / src / PartSet / PartSet_OperationSketchLine.cpp
index fa16b1bf9c0b0b11496cb711ca6d26fbb37da8bc..4ca7d3200991b2acfa7782b722b84f3e8e15cce5 100644 (file)
@@ -54,6 +54,11 @@ PartSet_OperationSketchLine::~PartSet_OperationSketchLine()
 {
 }
 
+bool PartSet_OperationSketchLine::canBeCommitted() const
+{
+  return myPointSelectionMode == SM_DonePoint;
+}
+
 bool PartSet_OperationSketchLine::isGranted(ModuleBase_IOperation* theOperation) const
 {
   return theOperation->getDescription()->operationId().toStdString() == PartSet_OperationSketch::Type();