diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-13 21:05:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-13 21:05:27 +0400 |
commit | 52a6a07d67f48c6c3465cbaf156bf8057755e1bc (patch) | |
tree | e10f280438fc1d2f14765bd918e54d3110d08ad8 /source/blender/blenkernel/BKE_unit.h | |
parent | e8d9e0823ee73e3c3fdd596fd3945abec40d21c1 (diff) |
added string max length option for unit functions bUnit_AsString and bUnit_ReplaceString
Diffstat (limited to 'source/blender/blenkernel/BKE_unit.h')
-rw-r--r-- | source/blender/blenkernel/BKE_unit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_unit.h b/source/blender/blenkernel/BKE_unit.h index df299718673..54d5bba057a 100644 --- a/source/blender/blenkernel/BKE_unit.h +++ b/source/blender/blenkernel/BKE_unit.h @@ -31,10 +31,10 @@ extern "C" { /* in all cases the value is assumed to be scaled by the user preference */ /* humanly readable representation of a value in units (used for button drawing) */ -void bUnit_AsString(char *str, double value, int prec, int system, int type, int split, int pad); +void bUnit_AsString(char *str, int len_max, 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, char *str_prev, double scale_pref, int system, int type); +int bUnit_ReplaceString(char *str, int len_max, char *str_prev, double scale_pref, int system, int type); /* the size of the unit used for this value (used for calculating the ckickstep) */ double bUnit_ClosestScalar(double value, int system, int type); |