Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2012-02-29 18:16:35 +0400
committerHoward Trickey <howard.trickey@gmail.com>2012-02-29 18:16:35 +0400
commitd330efa08405a0c0532b93ce6019b08e89c6266d (patch)
tree35901bafab88eaaa6014d60f0bd9b52befebfc0c /source/blender/python
parent3e159f65f9cb74566aa1d1a31a8c119325f3704b (diff)
Fix 30401: Python API vert new((0,0,0)) crashes.
Thanks to Campbell for fix, adding an & to an arg. Also needed to negate the sense of a later test.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c
index d0efb677a11..ecc5489dddf 100644
--- a/source/blender/python/bmesh/bmesh_py_types.c
+++ b/source/blender/python/bmesh/bmesh_py_types.c
@@ -1213,7 +1213,7 @@ static PyObject *bpy_bmvertseq_new(BPy_BMElemSeq *self, PyObject *args)
BPY_BM_CHECK_OBJ(self);
if (!PyArg_ParseTuple(args, "|OO!:verts.new",
- py_co,
+ &py_co,
&BPy_BMVert_Type, &py_vert_example))
{
return NULL;
@@ -1227,7 +1227,7 @@ static PyObject *bpy_bmvertseq_new(BPy_BMElemSeq *self, PyObject *args)
BPY_BM_CHECK_OBJ(py_vert_example);
}
- if (py_co && mathutils_array_parse(co, 3, 3, py_co, "verts.new(co)") != -1) {
+ if (!py_co || mathutils_array_parse(co, 3, 3, py_co, "verts.new(co)") == -1) {
return NULL;
}