From: azv Date: Thu, 28 Apr 2016 06:14:53 +0000 (+0300) Subject: Recalculate DoF when removing feature without constraints (issue #1456) X-Git-Tag: V_2.3.0~87 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f2e8789faa06405e900ee2272858a8ca898ba32;p=modules%2Fshaper.git Recalculate DoF when removing feature without constraints (issue #1456) --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 7b6bc263b..aef46368a 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -178,6 +178,7 @@ void SketchSolver_Manager::processEvent( break; if (aFGrIter != aFeatureGroups.end()) { + hasProperFeature = true; std::list aGroupsToResolve; std::list::iterator aGroupIter = myGroups.begin(); std::list aSeparatedGroups; @@ -186,7 +187,6 @@ void SketchSolver_Manager::processEvent( delete *aGroupIter; std::list::iterator aRemoveIt = aGroupIter++; myGroups.erase(aRemoveIt); - hasProperFeature = true; continue; } if (!(*aGroupIter)->isConsistent()) { // some constraints were removed, try to split the group @@ -194,7 +194,6 @@ void SketchSolver_Manager::processEvent( //if (!(*aGroupIter)->getWorkplane()->string( // SketchPlugin_Sketch::SOLVER_ERROR())->value().empty()) aGroupsToResolve.push_back(*aGroupIter); - hasProperFeature = true; } aGroupIter++; }