From b54b3567d9b145bf628f58cec1073cecd7d4b951 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 20 Apr 2016 12:11:25 +0300 Subject: [PATCH] Crash when removing part with sketch --- src/SketchSolver/SketchSolver_Manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 6511bc843..43c6e7cce 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -482,6 +482,10 @@ void SketchSolver_Manager::degreesOfFreedom() std::list::const_iterator aGroupIt = myGroups.begin(); for (; aGroupIt != myGroups.end(); ++aGroupIt) { CompositeFeaturePtr aSketch = (*aGroupIt)->getWorkplane(); + if (!aSketch->data()->isValid()) { + myDoF.erase(aSketch); + continue; + } // check conflicting constraints in the group if ((*aGroupIt)->isFailed()) -- 2.39.2