diff options
Diffstat (limited to 'source/blender/python/api2_2x/Mesh.c')
-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 212298e3dce..acb95919916 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -5408,15 +5408,13 @@ static PyObject *Mesh_Update( BPy_Mesh * self, PyObject *args, PyObject *kwd ) "Cannot update the key for this mesh, it has no shape keys"); for (kb = key->block.first; kb; kb=kb->next) - if (strcmp(blockname, kb->name)) + if (strcmp(blockname, kb->name)==0) break; if (!kb) return EXPP_ReturnPyObjError( PyExc_ValueError, "This requested key to update does not exist"); - printf("KEYBLOCKNAME %s\n", kb->name); - for(i=0, co= kb->data; i<me->totvert; i++, mv++, co++) VECCOPY(*co, mv->co); } else { |