]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1929 Splitting a segment at the middle
authornds <nds@opencascade.com>
Fri, 30 Dec 2016 11:32:14 +0000 (14:32 +0300)
committernds <nds@opencascade.com>
Fri, 30 Dec 2016 11:32:33 +0000 (14:32 +0300)
src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp

index ccf819ab626e340bb18825946e1a40a6387a9e3d..b4ec984b81efe61d8525fbb95033ce1760eb5cb5 100755 (executable)
@@ -32,6 +32,7 @@
 #include <SketchPlugin_ConstraintMirror.h>
 #include <SketchPlugin_MultiRotation.h>
 #include <SketchPlugin_MultiTranslation.h>
+#include <SketchPlugin_ConstraintMiddle.h>
 
 #include <ModelAPI_Events.h>
 #include <SketchPlugin_Line.h>
@@ -440,7 +441,8 @@ void SketchPlugin_ConstraintSplit::getConstraints(std::set<FeaturePtr>& theFeatu
     std::string aRefFeatureKind = aRefFeature->getKind();
     if (aRefFeatureKind == SketchPlugin_ConstraintMirror::ID() ||
         aRefFeatureKind == SketchPlugin_MultiRotation::ID() ||
-        aRefFeatureKind == SketchPlugin_MultiTranslation::ID())
+        aRefFeatureKind == SketchPlugin_MultiTranslation::ID() ||
+        aRefFeatureKind == SketchPlugin_ConstraintMiddle::ID())
       theFeaturesToDelete.insert(aRefFeature);
     else if (aRefFeatureKind == SketchPlugin_ConstraintLength::ID())
       theFeaturesToUpdate.insert(aRefFeature);