From 055d0ce96408278a4c6cb802e41bc1e577f4e85e Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Thu, 26 May 2016 15:44:29 +0200 Subject: [PATCH] graph::helper does not create placement constraints if there are no env contacts --- src/graph/helper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/helper.cc b/src/graph/helper.cc index dde834a..eb8a2ee 100644 --- a/src/graph/helper.cc +++ b/src/graph/helper.cc @@ -901,7 +901,7 @@ namespace hpp { ++it; } // Create placement - if (!od.shapes.empty ()) { + if (!envNames.empty() && !od.shapes.empty ()) { const std::string placeN = "place_" + od.name; ps->createPlacementConstraint (placeN, od.shapes, envNames, margin); -- GitLab