From 1994b5b493d7b49151bf02a539221fd17c41a886 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Wed, 21 Oct 2009 18:43:51 +0000 Subject: [PATCH] removed implicit cast warning. --- wrap/io_trimesh/import_obj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/io_trimesh/import_obj.h b/wrap/io_trimesh/import_obj.h index 45c9726a..a0637360 100644 --- a/wrap/io_trimesh/import_obj.h +++ b/wrap/io_trimesh/import_obj.h @@ -972,7 +972,7 @@ static bool LoadMask(const char * filename, int &mask) } else if (header.compare("Ns")==0) // shininess { - currentMaterial.Ns = atoi(tokens[1].c_str()); + currentMaterial.Ns = float(atoi(tokens[1].c_str())); } else if (header.compare("illum")==0) // specular illumination on/off {