From: nds Date: Fri, 30 Dec 2016 11:32:14 +0000 (+0300) Subject: #1929 Splitting a segment at the middle X-Git-Tag: V_2.7.0~351^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=66a570c9ec40e467556551de5eca635f4c38d1af;p=modules%2Fshaper.git #1929 Splitting a segment at the middle --- diff --git a/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp b/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp index ccf819ab6..b4ec984b8 100755 --- a/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -440,7 +441,8 @@ void SketchPlugin_ConstraintSplit::getConstraints(std::set& 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);