Mistake in previous commit test for API vert new: it failed for no-arg case.
authorHoward Trickey <howard.trickey@gmail.com>
Wed, 29 Feb 2012 15:35:10 +0000 (15:35 +0000)
committerHoward Trickey <howard.trickey@gmail.com>
Wed, 29 Feb 2012 15:35:10 +0000 (15:35 +0000)
source/blender/python/bmesh/bmesh_py_types.c

index ecc5489dddf4189aabe8d73c60dba0e08bdd5401..1145fbbd452b26b112c6021cc50b013c4e9b28cd 100644 (file)
@@ -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;
                }