From b5eb37c83004008e5446d8642419cae0dfd96638 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Thu, 9 Nov 2006 05:26:57 +0000 Subject: [PATCH] reducing the uv precision from 1/1000th to 1/100th --- pandatool/src/mayaegg/mayaToEggConverter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandatool/src/mayaegg/mayaToEggConverter.cxx b/pandatool/src/mayaegg/mayaToEggConverter.cxx index ccebf0b190..af66e385ba 100644 --- a/pandatool/src/mayaegg/mayaToEggConverter.cxx +++ b/pandatool/src/mayaegg/mayaToEggConverter.cxx @@ -2020,9 +2020,9 @@ make_polyset(MayaNodeDesc *node_desc, const MDagPath &dag_path, if (!status) { status.perror("MItMeshPolygon::getUV"); } else { - // apply upto 1/1000th precision - uvs[0] = (double)((long)(uvs[0]*1000))/1000.0; - uvs[1] = (double)((long)(uvs[1]*1000))/1000.0; + // apply upto 1/100th precision + uvs[0] = (double)((long)(uvs[0]*100))/100.0; + uvs[1] = (double)((long)(uvs[1]*100))/100.0; vert.set_uv(colordef_uv_name, TexCoordd(uvs[0], uvs[1])); } }