[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38063] trunk/blender/source/blender/ editors/interface/interface.c: changed the max decimal points to show from 7 to 6, since with float precision problems the median point of a selection could be 0 .0000003
Campbell Barton
ideasman42 at gmail.com
Sun Jul 3 15:20:22 CEST 2011
Revision: 38063
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38063
Author: campbellbarton
Date: 2011-07-03 13:20:21 +0000 (Sun, 03 Jul 2011)
Log Message:
-----------
changed the max decimal points to show from 7 to 6, since with float precision problems the median point of a selection could be 0.0000003
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/interface.c
Modified: trunk/blender/source/blender/editors/interface/interface.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface.c 2011-07-03 13:01:52 UTC (rev 38062)
+++ trunk/blender/source/blender/editors/interface/interface.c 2011-07-03 13:20:21 UTC (rev 38063)
@@ -74,8 +74,8 @@
#define MENU_ITEM_HEIGHT 20
#define MENU_SEP_HEIGHT 6
-#define PRECISION_FLOAT_MAX 7
-#define PRECISION_FLOAT_MAX_POW 10000000 /* pow(10, PRECISION_FLOAT_MAX) */
+#define PRECISION_FLOAT_MAX 6
+#define PRECISION_FLOAT_MAX_POW 1000000 /* pow(10, PRECISION_FLOAT_MAX) */
/* avoid unneeded calls to ui_get_but_val */
#define UI_BUT_VALUE_UNSET DBL_MAX
More information about the Bf-blender-cvs
mailing list