diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-12 11:23:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-12 11:23:10 +0400 |
commit | 63b276efbfa814e813692b1a8d6cb0ddda08bf93 (patch) | |
tree | 1794d2ae484d8508203ff557f1c5f60814fff6be /source/blender/blenkernel/BKE_unit.h | |
parent | d1085715a3b52bc31176a6accfa0b4838d99c2ab (diff) |
- was displaying 1cm as 10mm because of double precission problem.
- typing in numbers without any units will use the units displayed before editing the value.
- fixed some errors
Diffstat (limited to 'source/blender/blenkernel/BKE_unit.h')
-rw-r--r-- | source/blender/blenkernel/BKE_unit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_unit.h b/source/blender/blenkernel/BKE_unit.h index 14b805c23f6..6b72c01bf0a 100644 --- a/source/blender/blenkernel/BKE_unit.h +++ b/source/blender/blenkernel/BKE_unit.h @@ -34,7 +34,7 @@ extern "C" { void bUnit_AsString(char *str, double value, int prec, int system, int type, int split, int pad); /* replace units with values, used before python button evaluation */ -int bUnit_ReplaceString(char *str, char *str_orig, double scale_pref, int system, int type); +int bUnit_ReplaceString(char *str, char *str_orig, char *str_prev, double scale_pref, int system, int type); #ifdef __cplusplus } |