From 8f2e8789faa06405e900ee2272858a8ca898ba32 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 28 Apr 2016 09:14:53 +0300 Subject: [PATCH] Recalculate DoF when removing feature without constraints (issue #1456) --- src/SketchSolver/SketchSolver_Manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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++; } -- 2.39.2