ccdemos/common_ply.h
branchpyrit
changeset 93 96d65f841791
parent 92 9af5c039b678
child 100 c005054bf4c1
--- 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];
 		}