Enable Python to read the value of a sketcher constraint

This commit is contained in:
jrheinlaender
2013-09-13 19:35:36 +02:00
committed by Stefan Tröger
parent c854915514
commit 91ab2987a7
2 changed files with 12 additions and 1 deletions

View File

@@ -503,6 +503,11 @@ void ConstraintPy::setName(Py::String arg)
this->getConstraintPtr()->Name = arg;
}
Py::Float ConstraintPy::getValue(void) const
{
return Py::Float(this->getConstraintPtr()->getValue());
}
PyObject *ConstraintPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;