From 30d30a27b8d827fa49d496a0ad804cceffb253b6 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 28 Jun 2020 08:50:06 +0200 Subject: [PATCH] GCS: Prevent that reference constraints affect the result of a redundant solving ================================================================================ Solves the part of this described bug relating to reference constraints affecting the diagnosis of redundant constraints: https://forum.freecadweb.org/viewtopic.php?p=410195#p410195 --- src/Mod/Sketcher/App/planegcs/GCS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/planegcs/GCS.cpp b/src/Mod/Sketcher/App/planegcs/GCS.cpp index 8109696706..d7629e37c1 100644 --- a/src/Mod/Sketcher/App/planegcs/GCS.cpp +++ b/src/Mod/Sketcher/App/planegcs/GCS.cpp @@ -4204,7 +4204,7 @@ SolverReportingManager::Manager().LogToFile("GCS::System::diagnose()\n"); clistTmp.reserve(clist.size()); for (std::vector::iterator constr=clist.begin(); constr != clist.end(); ++constr) { - if (skipped.count(*constr) == 0) + if ((*constr)->isDriving() && skipped.count(*constr) == 0) clistTmp.push_back(*constr); }