+ on rename of contraint make sure that new name is different, on swap constraint names make sure they have user-defined names

This commit is contained in:
wmayer
2016-03-12 20:02:18 +01:00
parent edd55999cc
commit ab449f5dd8
3 changed files with 22 additions and 8 deletions

View File

@@ -386,7 +386,7 @@ bool PropertyConstraintList::scanGeometry(const std::vector<Part::Geometry *> &G
string PropertyConstraintList::getConstraintName(const std::string & name, int i)
{
if (name != "")
if (!name.empty())
return name;
else
return getConstraintName(i);