diff -r 9af5c039b678 -r 96d65f841791 ccdemos/common_ply.h --- a/ccdemos/common_ply.h Mon May 05 15:31:14 2008 +0200 +++ b/ccdemos/common_ply.h Tue May 06 09:39:58 2008 +0200 @@ -86,7 +86,7 @@ for (int i = 0; i < vertex_num; i++) if (vertex_face_num.at(i)) { - normals[i] /= vertex_face_num.at(i); + normals[i] /= (Float)vertex_face_num.at(i); normals[i].normalize(); vertices.at(i)->N = normals[i]; }