=== Python API ===

Fixes for the bug introduced by my other commit the other day.

Blender.Draw.Create now does proper error checking.
This commit is contained in:
2006-05-22 01:59:28 +00:00
parent 58648f0ed2
commit f849384fcd

View File

@@ -785,6 +785,10 @@ static PyObject *Method_Create( PyObject * self, PyObject * args )
but = NULL;
PyErr_SetString( PyExc_TypeError, "expected string, float, int or 3-float tuple argument" );
}
if (but != NULL) {
PyErr_Clear();
}
return (PyObject*) but;
}