* Fixed compiler warnings concerning the lack of a newline at the
end of a file. * Fixed compiler warnings due to an invalid argument to PyList_New(). NULL was used instead of 0 to create an empty list.
This commit is contained in:
@@ -133,7 +133,7 @@ PyObject * SVertex_normals( BPy_SVertex *self ) {
|
||||
PyObject *py_normals;
|
||||
set< Vec3r > normals;
|
||||
|
||||
py_normals = PyList_New(NULL);
|
||||
py_normals = PyList_New(0);
|
||||
normals = self->sv->normals();
|
||||
|
||||
for( set< Vec3r >::iterator set_iterator = normals.begin(); set_iterator != normals.end(); set_iterator++ ) {
|
||||
|
||||
Reference in New Issue
Block a user