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
This commit is contained in:
Abdullah Tahiri
2020-06-28 08:50:06 +02:00
committed by abdullahtahiriyo
parent 56db6f0e80
commit 30d30a27b8

View File

@@ -4204,7 +4204,7 @@ SolverReportingManager::Manager().LogToFile("GCS::System::diagnose()\n");
clistTmp.reserve(clist.size());
for (std::vector<Constraint *>::iterator constr=clist.begin();
constr != clist.end(); ++constr) {
if (skipped.count(*constr) == 0)
if ((*constr)->isDriving() && skipped.count(*constr) == 0)
clistTmp.push_back(*constr);
}