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