Python bug fix for #724

* Blender.Object.setDrawMode does not work. I had accidentally switched the
  variables for setDrawMode and setDrawType. This implied that _both_
  functions did not work correctly. The functions getDrawMode and getDrawType
  use the correct variables.
This commit is contained in:
2004-01-25 17:58:24 +00:00
parent 8eac9cef15
commit 259acf5f66

View File

@@ -1144,21 +1144,6 @@ static PyObject *Object_setDeltaLocation (BPy_Object *self, PyObject *args)
static PyObject *Object_setDrawMode (BPy_Object *self, PyObject *args)
{
char dt;
if (!PyArg_ParseTuple (args, "b", &dt))
{
return (PythonReturnErrorObject (PyExc_AttributeError,
"expected an integer as argument"));
}
self->object->dt = dt;
Py_INCREF (Py_None);
return (Py_None);
}
static PyObject *Object_setDrawType (BPy_Object *self, PyObject *args)
{
char dtx;
if (!PyArg_ParseTuple (args, "b", &dtx))
@@ -1172,6 +1157,21 @@ static PyObject *Object_setDrawType (BPy_Object *self, PyObject *args)
return (Py_None);
}
static PyObject *Object_setDrawType (BPy_Object *self, PyObject *args)
{
char dt;
if (!PyArg_ParseTuple (args, "b", &dt))
{
return (PythonReturnErrorObject (PyExc_AttributeError,
"expected an integer as argument"));
}
self->object->dt = dt;
Py_INCREF (Py_None);
return (Py_None);
}
static PyObject *Object_setEuler (BPy_Object *self, PyObject *args)
{
float rot1;