Small code cleanups by Stephane SOPPER...

remove extra ;   and move a variable declaration to top of function.

Kent
This commit is contained in:
2005-10-03 20:24:10 +00:00
parent 3a8d10a713
commit bfea10e659
2 changed files with 2 additions and 2 deletions

View File

@@ -2873,11 +2873,11 @@ static PyObject *Mesh_calcNormals( BPy_Mesh * self )
static PyObject *Mesh_vertexShade( BPy_Mesh * self )
{
Base *base = FIRSTBASE;
if( G.obedit )
return EXPP_ReturnPyObjError(PyExc_RuntimeError,
"can't shade vertices while in edit mode" );
Base *base = FIRSTBASE;
while( base ) {
if( base->object->type == OB_MESH &&
base->object->data == self->mesh ) {