Commit 12eb5f64 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

getCollisionSurfaces : fix mistake preventing all the surfaces to be found

parent 3d93d965
......@@ -1579,8 +1579,7 @@ namespace hpp {
hppDout(warning,"For rom : "<<it->first<<" unable to cast in a AllCollisionsValidationReport, did you correctly call computeAllContacts(true) before generating the report ? ");
//return;
}
if(romReports->collisionReports.size()> 1){
if(romReports->collisionReports.size()> 0){
for(std::vector<CollisionValidationReportPtr_t>::const_iterator itAff = romReports->collisionReports.begin() ; itAff != romReports->collisionReports.end() ; ++itAff){
res.push_back((*itAff)->object2->name ());
}
......
Supports Markdown
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