From 63b276efbfa814e813692b1a8d6cb0ddda08bf93 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 12 Aug 2009 07:23:10 +0000 Subject: - 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 --- source/blender/blenkernel/BKE_unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_unit.h') 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 } -- cgit v1.2.3