File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -5390,11 +5390,14 @@ bool ConstraintSystem::recordFix(ConstraintFix *fix) {
5390
5390
5391
5391
// Record the fix.
5392
5392
5393
- // Increase the score. If this would make the current solution worse than
5394
- // the best solution we've seen already, stop now.
5395
- increaseScore (SK_Fix);
5396
- if (worseThanBestSolution ())
5397
- return true ;
5393
+ // If this is just a warning it's shouldn't affect the solver.
5394
+ if (!fix->isWarning ()) {
5395
+ // Otherswise increase the score. If this would make the current
5396
+ // solution worse than the best solution we've seen already, stop now.
5397
+ increaseScore (SK_Fix);
5398
+ if (worseThanBestSolution ())
5399
+ return true ;
5400
+ }
5398
5401
5399
5402
if (isAugmentingFix (fix)) {
5400
5403
// Always useful, unless duplicate of exactly the same fix and location.
You can’t perform that action at this time.
0 commit comments