diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-07-21 07:19:52 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-07-21 07:19:52 +0400 |
commit | c04bec851cebc017ba6b144b879919fd1f1967a2 (patch) | |
tree | 78c249bf7b75dde60e3f6f56fd16a1a75bf860a9 /source/blender/python/api2_2x/NMesh.c | |
parent | df36d4c8e5ac74a15ceafaa93ad1b62c98a8f9fc (diff) |
creator.c wasn't updated in my last commit, here it is (the change reverts my previous change to it, since it was made unnecessary by handling onload scriptlinks a little differently, as can be checked in blender.c and editscreen.c).
- BPython: finishing object and nmesh .setMaterials commit, fixing two bugs. Also fixed a crash with object.track (pointer wasn't checked for validity). All based on reports and patch by Yann Vernier, thanks again.
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.c')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index db32a964443..7036aca2ba4 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -818,7 +818,7 @@ static PyObject *NMesh_setMaterials (PyObject *self, PyObject *args) BPy_NMesh *me = (BPy_NMesh *)self; PyObject *pymats = NULL; - if (!PyArg_ParseTuple (args, "O!", &PyList_Type, pymats)) + if (!PyArg_ParseTuple (args, "O!", &PyList_Type, &pymats)) return EXPP_ReturnPyObjError (PyExc_TypeError, "expected a list of materials (None's also accepted) as argument"); |