add more constraints and rebuild solver system everytime it needs to be executed
This commit is contained in:
committed by
Stefan Tröger
parent
1e8a304036
commit
ca60024447
@@ -16,20 +16,6 @@ std::string ConstraintGroupPy::representation(void) const
|
||||
return std::string("<ConstraintGroup object>");
|
||||
}
|
||||
|
||||
PyObject* ConstraintGroupPy::addConstraint(PyObject * args)
|
||||
{
|
||||
PyObject *pcObj;
|
||||
if (!PyArg_ParseTuple(args, "O", &pcObj))
|
||||
return 0;
|
||||
|
||||
if (PyObject_TypeCheck(pcObj, &(Assembly::ConstraintPy::Type))) {
|
||||
Base::Console().Message("Add constraint\n");
|
||||
Assembly::Constraint *c = static_cast<Assembly::ConstraintPy*>(pcObj)->getConstraintPtr();
|
||||
this->getConstraintGroupPtr()->addConstraint(c);
|
||||
}
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
PyObject *ConstraintGroupPy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user