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:
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_ViewShape.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_ViewShape.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
index fcff1338ed1..46ac5e44d0d 100644
--- a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
+++ b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
@@ -142,7 +142,7 @@ PyObject * ViewShape_sshape( BPy_ViewShape *self ) {
PyObject * ViewShape_vertices( BPy_ViewShape *self ) {
- PyObject *py_vertices = PyList_New(NULL);
+ PyObject *py_vertices = PyList_New(0);
vector< ViewVertex * > vertices = self->vs->vertices();
vector< ViewVertex * >::iterator it;
@@ -156,7 +156,7 @@ PyObject * ViewShape_vertices( BPy_ViewShape *self ) {
PyObject * ViewShape_edges( BPy_ViewShape *self ) {
- PyObject *py_edges = PyList_New(NULL);
+ PyObject *py_edges = PyList_New(0);
vector< ViewEdge * > edges = self->vs->edges();
vector< ViewEdge * >::iterator it;
@@ -260,4 +260,4 @@ PyObject * ViewShape_AddVertex( BPy_ViewShape *self , PyObject *args) {
#ifdef __cplusplus
}
-#endif \ No newline at end of file
+#endif