Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-06-19 22:40:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-06-19 22:40:17 +0400
commitd6330266f2877ce3360d3df3bd4e4873ff1d2747 (patch)
tree08bd36c7680eef044d90a8b2feb92acb85646174 /source/blender/python/api2_2x/Draw.c
parent396cef60624ae452dcb28faf4cbbf8d4d4d5b254 (diff)
changed floating point values in python to display one more decimal place- BMAE script needed to display more (as it worked with 2.41) and it seems resionable to add.
Diffstat (limited to 'source/blender/python/api2_2x/Draw.c')
-rw-r--r--source/blender/python/api2_2x/Draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c
index 114713fcfad..0cdcd20f9a3 100644
--- a/source/blender/python/api2_2x/Draw.c
+++ b/source/blender/python/api2_2x/Draw.c
@@ -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;