reducing the uv precision from 1/1000th to 1/100th

This commit is contained in:
Asad M. Zaman 2006-11-09 05:26:57 +00:00
parent b97985557d
commit b5eb37c830

View File

@ -2020,9 +2020,9 @@ make_polyset(MayaNodeDesc *node_desc, const MDagPath &dag_path,
if (!status) { if (!status) {
status.perror("MItMeshPolygon::getUV"); status.perror("MItMeshPolygon::getUV");
} else { } else {
// apply upto 1/1000th precision // apply upto 1/100th precision
uvs[0] = (double)((long)(uvs[0]*1000))/1000.0; uvs[0] = (double)((long)(uvs[0]*100))/100.0;
uvs[1] = (double)((long)(uvs[1]*1000))/1000.0; uvs[1] = (double)((long)(uvs[1]*100))/100.0;
vert.set_uv(colordef_uv_name, TexCoordd(uvs[0], uvs[1])); vert.set_uv(colordef_uv_name, TexCoordd(uvs[0], uvs[1]));
} }
} }