small commit to allow bpy_operator.c to compile in msvc
authorShaul Kedem <shaul_kedem@yahoo.com>
Thu, 5 Mar 2009 17:47:33 +0000 (17:47 +0000)
committerShaul Kedem <shaul_kedem@yahoo.com>
Thu, 5 Mar 2009 17:47:33 +0000 (17:47 +0000)
source/blender/python/intern/bpy_operator.c

index a05456cfe9bec3b2cfb2810c23a26ade9e652e26..ec8227c670d63249622da249a39ecebb2f252650 100644 (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);
                }