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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user