made editmode only force smooth shading when vcols are present (as joe suggested)

pythons api's image.unpack() was broken
This commit is contained in:
2008-03-27 11:52:58 +00:00
parent c2ae2b51cf
commit 08bc0efecb
2 changed files with 17 additions and 10 deletions

View File

@@ -191,7 +191,7 @@ static PyMethodDef BPy_Image_methods[] = {
"(int) - Change Image object animation speed (fps)"},
{"save", ( PyCFunction ) Image_save, METH_NOARGS,
"() - Write image buffer to file"},
{"unpack", ( PyCFunction ) Image_unpack, METH_VARARGS,
{"unpack", ( PyCFunction ) Image_unpack, METH_O,
"(int) - Unpack image. Uses the values defined in Blender.UnpackModes."},
{"pack", ( PyCFunction ) Image_pack, METH_NOARGS,
"() - Pack the image"},