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:
authorCampbell Barton <ideasman42@gmail.com>2007-06-01 06:48:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-06-01 06:48:36 +0400
commit3d6f9b804fce3779a10ecdcdfeed46c75f9adef4 (patch)
tree93421f7c6a694018f3c3a5bd24e3b4efcbdafed3 /source/blender/python/api2_2x/NMesh.c
parentf19b56a541c1c8923fc64adefd7e250c5b55b965 (diff)
buttons editing didnt let lib-obdata to changed once set (thanks for the report broken)
NMesh (error in last commit).
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.c')
-rw-r--r--source/blender/python/api2_2x/NMesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c
index b0ab64a6249..3c7a15a537a 100644
--- a/source/blender/python/api2_2x/NMesh.c
+++ b/source/blender/python/api2_2x/NMesh.c
@@ -1303,7 +1303,7 @@ static PyObject *NMesh_getSelectedFaces( PyObject * self, PyObject * args )
totfaces= me->totface;
if( flag ) {
- for( i = 0; i < me->totface; i++ ) {
+ for( i = 0; i < totfaces; i++ ) {
if( mf[i].flag & ME_FACE_SEL ) {
pyval = PyInt_FromLong( i );
PyList_Append( l, pyval );
@@ -1311,7 +1311,7 @@ static PyObject *NMesh_getSelectedFaces( PyObject * self, PyObject * args )
}
}
} else {
- for( i = 0; i < me->totface; i++ ) {
+ for( i = 0; i < totfaces; i++ ) {
if( mf[i].flag & ME_FACE_SEL )
PyList_Append( l, PyList_GetItem( nm->faces, i ) );
}