[Bf-blender-cvs] [704494e] master: Fix own error in freestyle api
Campbell Barton
noreply at git.blender.org
Mon Jan 19 04:23:35 CET 2015
Commit: 704494e8cd970832482d550abdbdd6fb5079bb46
Author: Campbell Barton
Date: Fri Jan 16 14:31:51 2015 +1100
Branches: master
https://developer.blender.org/rB704494e8cd970832482d550abdbdd6fb5079bb46
Fix own error in freestyle api
===================================================================
M source/blender/freestyle/intern/python/BPy_ViewShape.cpp
===================================================================
diff --git a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
index 6c6e821..8aaddbe 100644
--- a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
+++ b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
@@ -220,7 +220,6 @@ static PyObject *ViewShape_vertices_get(BPy_ViewShape *self, void *UNUSED(closur
static int ViewShape_vertices_set(BPy_ViewShape *self, PyObject *value, void *UNUSED(closure))
{
- PyObject *list = 0;
PyObject *item;
vector< ViewVertex *> v;
@@ -229,9 +228,9 @@ static int ViewShape_vertices_set(BPy_ViewShape *self, PyObject *value, void *UN
return -1;
}
- v.reserve(PyList_Size(list));
- for (unsigned int i = 0; i < PyList_Size(list); i++) {
- item = PyList_GET_ITEM(list, i);
+ v.reserve(PyList_Size(value));
+ for (unsigned int i = 0; i < PyList_Size(value); i++) {
+ item = PyList_GET_ITEM(value, i);
if (BPy_ViewVertex_Check(item)) {
v.push_back(((BPy_ViewVertex *)item)->vv);
}
More information about the Bf-blender-cvs
mailing list