+ fixes #0001380: Allow to set user-defined names for constraints

This commit is contained in:
wmayer
2014-02-10 15:36:58 +01:00
parent 9e8f124af7
commit c3384e4b5a
7 changed files with 59 additions and 8 deletions

View File

@@ -361,6 +361,16 @@ void ConstraintPy::setSecond(Py::Int arg)
this->getConstraintPtr()->Second = arg;
}
Py::String ConstraintPy::getName(void) const
{
return Py::String(this->getConstraintPtr()->Name);
}
void ConstraintPy::setName(Py::String arg)
{
this->getConstraintPtr()->Name = arg;
}
PyObject *ConstraintPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;