More bug fixes for Body insertion/deletion of features

This commit is contained in:
jrheinlaender
2013-04-12 16:16:34 +04:30
committed by Stefan Tröger
parent ee47c53339
commit 63f782d8f0
9 changed files with 125 additions and 98 deletions

View File

@@ -29,7 +29,7 @@ int BodyPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
return 0;
}
PyObject* BodyPy::insertFeature(PyObject *args)
PyObject* BodyPy::addFeature(PyObject *args)
{
PyObject* featurePy;
if (!PyArg_ParseTuple(args, "O!", &(Part::PartFeaturePy::Type), &featurePy))
@@ -45,7 +45,7 @@ PyObject* BodyPy::insertFeature(PyObject *args)
Body* body = this->getBodyPtr();
try {
body->insertFeature(feature);
body->addFeature(feature);
} catch (Base::Exception& e) {
PyErr_SetString(PyExc_SystemError, e.what());
return 0;