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>2011-07-03 17:20:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-03 17:20:21 +0400
commit613e9b9926aed44aa904ce69c8d6bb6c3eecc40d (patch)
tree2e5906f80dc39e68f53fd213bacad97567e5b114 /source/blender/editors/interface
parentfe62b62cb0b61c03bea111d8fecb73b2166fcddf (diff)
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
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 30c0f552b72..8aed0d58a07 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -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