diff options
author | Ken Hughes <khughes@pacific.edu> | 2007-07-12 19:32:15 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2007-07-12 19:32:15 +0400 |
commit | 229e4674f8c9b9bc0e77e25e8925981c8813873e (patch) | |
tree | 78d83b7ad97ef4548529ee7de2ff2959c2cc25ef /source/blender/python/api2_2x | |
parent | 178dc730845f207c0122db1252545d25b91b8a89 (diff) |
Python API
----------
Fix uninitialized variable in MEdge_setSel.
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r-- | source/blender/python/api2_2x/Mesh.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index 0a5a2d2951a..21a01e0d983 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -2566,7 +2566,7 @@ static int MEdge_setSel( BPy_MEdge * self,PyObject * value, { MEdge *edge = MEdge_get_pointer( self ); int param = PyObject_IsTrue( value ); - Mesh *me; + Mesh *me = self->mesh; if( !edge ) return -1; @@ -2578,8 +2578,6 @@ static int MEdge_setSel( BPy_MEdge * self,PyObject * value, return EXPP_ReturnIntError( PyExc_TypeError, "expected True/False or 0/1" ); - me = self->mesh; - if( param ) { edge->flag |= SELECT; me->mvert[edge->v1].flag |= SELECT; |