Commit 83f407df authored by Margaux Sebal's avatar Margaux Sebal Committed by Joseph Mirabel
Browse files

[kPrm*]Check that constraint exists

parent b6d17c23
......@@ -112,7 +112,7 @@ namespace hpp {
// After 10000 trials throw if no valid configuration has been found.
do {
qrand = shooter->shoot ();
if ((valid = constraints->apply (*qrand))) {
if (valid = (!constraints || constraints->apply (*qrand))) {
valid = configValidations->validate (*qrand, validationReport);
}
nbTry++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment