changed floating point values in python to display one more decimal place- BMAE scrip...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jun 2007 18:40:17 +0000 (18:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jun 2007 18:40:17 +0000 (18:40 +0000)
source/blender/python/api2_2x/Draw.c

index 114713fcfad09b4d0db806fa9b69576787e7670b..0cdcd20f9a3c331633aa6a7c0c3b95d2d01e5be7 100644 (file)
@@ -1461,9 +1461,9 @@ static PyObject *Method_Number( PyObject * self, PyObject * args )
                if (!range) range= 1.0f; /* avoid any odd errors */
                
                /* set the precission to display*/
-               if      (range>=100.0f) precission=1.0f;
-               else if (range>=10.0f) precission=2.0f;
-               else if (range>=1.0f) precission=3.0f;
+               if      (range>=1000.0f) precission=1.0f;
+               else if (range>=100.0f) precission=2.0f;
+               else if (range>=10.0f) precission=3.0f;
                else precission=4.0f;
                
                but->type = BFLOAT_TYPE;