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 {