Fix for __repr__() depending on .getName() and .getExactTypeName().

API users no longer need to define them in user-defined Functions, Predicates and StrokeShaders.
Also removed all .getName() and .getExactTypeName() definitions in pre-defined Functions,
Predicates and StrokeShaders subclasses.
This commit is contained in:
2013-02-23 12:17:40 +00:00
parent 47960a3d8a
commit 7b3a5f6901
14 changed files with 10 additions and 272 deletions

View File

@@ -93,8 +93,8 @@ static PyObject * UnaryPredicate0D___call__(BPy_UnaryPredicate0D *self, PyObject
Interface0DIterator *if0D_it = ((BPy_Interface0DIterator *)py_if0D_it)->if0D_it;
if (!if0D_it) {
string msg(self->up0D->getName() + " has no Interface0DIterator");
PyErr_SetString(PyExc_RuntimeError, msg.c_str());
string class_name(Py_TYPE(self)->tp_name);
PyErr_SetString(PyExc_RuntimeError, (class_name + " has no Interface0DIterator").c_str());
return NULL;
}
if (typeid(*(self->up0D)) == typeid(UnaryPredicate0D)) {