diff --git a/src/meshlabplugins/meshio/export_3ds.h b/src/meshlabplugins/meshio/export_3ds.h index 56849a070..0f6a9ba08 100644 --- a/src/meshlabplugins/meshio/export_3ds.h +++ b/src/meshlabplugins/meshio/export_3ds.h @@ -25,6 +25,9 @@ History $Log$ + Revision 1.10 2006/02/03 10:04:41 fmazzant + no significant updated + Revision 1.9 2006/02/02 16:08:27 fmazzant updated comment code @@ -537,10 +540,8 @@ namespace io { Point3f diffuse; if(r > 1 || g > 1 || b > 1) diffuse = Point3f((float)r/255.0,(float)g/255.0,(float)b/255.0); - else if (r != 0 || g != 0 || b != 0) + else diffuse = Point3f((float)r,(float)g,(float)b); - else - diffuse = Point3f(0.8,0.8,0.80); float Tr; if(alpha > 1) diff --git a/src/meshlabplugins/meshio/export_obj.h b/src/meshlabplugins/meshio/export_obj.h index c157b895c..1b02cbd8f 100644 --- a/src/meshlabplugins/meshio/export_obj.h +++ b/src/meshlabplugins/meshio/export_obj.h @@ -25,6 +25,9 @@ History $Log$ + Revision 1.5 2006/02/03 10:04:41 fmazzant + no significant updated + Revision 1.4 2006/01/30 14:02:05 fmazzant bug-fix @@ -400,11 +403,9 @@ namespace io { Point3f diffuse; if(r > 1 || g > 1 || b > 1) diffuse = Point3f((float)r/255.0,(float)g/255.0,(float)b/255.0); - else if (r != 0 || g != 0 || b != 0) + else diffuse = Point3f((float)r,(float)g,(float)b); - else - diffuse = Point3f(0.8,0.8,0.8); - + float Tr; if(alpha > 1) Tr = (float)alpha/255.0;