diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-08-20 14:31:15 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-08-20 14:31:15 +0400 |
commit | 27e77609137b71b4589e202ef358cb6d51c3a217 (patch) | |
tree | cf8760827fff038524a58649fa996758c21c6488 /source/blender/blenkernel/BKE_unit.h | |
parent | 8535b9bd15434dc76e599a95a041422b17153116 (diff) |
BKE_units: Some cleanup (mostly bools instead of ints).
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 598817298b8..b351bc6fe3e 100644 --- a/source/blender/blenkernel/BKE_unit.h +++ b/source/blender/blenkernel/BKE_unit.h @@ -37,7 +37,7 @@ extern "C" { size_t bUnit_AsString(char *str, int len_max, double value, int prec, int system, int type, bool split, bool pad); /* replace units with values, used before python button evaluation */ -int bUnit_ReplaceString(char *str, int len_max, const char *str_prev, double scale_pref, int system, int type); +bool bUnit_ReplaceString(char *str, int len_max, const char *str_prev, double scale_pref, int system, int type); /* make string keyboard-friendly: 10µm --> 10um */ void bUnit_ToUnitAltName(char *str, int len_max, const char *orig_str, int system, int type); @@ -49,7 +49,7 @@ double bUnit_ClosestScalar(double value, int system, int type); double bUnit_BaseScalar(int system, int type); /* return true is the unit system exists */ -int bUnit_IsValid(int system, int type); +bool bUnit_IsValid(int system, int type); /* loop over scales, coudl add names later */ //double bUnit_Iter(void **unit, char **name, int system, int type); |