[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10973] trunk/blender/source/blender/ python/api2_2x/Draw.c: 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.
Campbell Barton
cbarton at metavr.com
Tue Jun 19 20:40:17 CEST 2007
Revision: 10973
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10973
Author: campbellbarton
Date: 2007-06-19 20:40:17 +0200 (Tue, 19 Jun 2007)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/Draw.c
Modified: trunk/blender/source/blender/python/api2_2x/Draw.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Draw.c 2007-06-19 17:03:29 UTC (rev 10972)
+++ trunk/blender/source/blender/python/api2_2x/Draw.c 2007-06-19 18:40:17 UTC (rev 10973)
@@ -1461,9 +1461,9 @@
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;
More information about the Bf-blender-cvs
mailing list