small commit to allow bpy_operator.c to compile in msvc

This commit is contained in:
2009-03-05 17:47:33 +00:00
parent c3df168539
commit caf4be7def

View File

@@ -150,16 +150,14 @@ static PyObject *pyop_base_getattro( BPy_OperatorBase * self, PyObject *pyname )
char *name = _PyUnicode_AsString(pyname);
PyObject *ret;
wmOperatorType *ot;
PyMethodDef *meth;
if ((ot = WM_operatortype_find(name))) {
ret= pyop_func_CreatePyObject(self->C, name);
}
else if (strcmp(name, "__dict__")==0) {
ret = PyDict_New();
wmOperatorType *ot;
PyMethodDef *meth;
for(ot= WM_operatortype_first(); ot; ot= ot->next) {
PyDict_SetItemString(ret, ot->idname, Py_None);
}