diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-26 14:52:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-26 14:53:41 +0400 |
commit | b198500c027231709686ed600cfeff8dde70d8cd (patch) | |
tree | 8f90e2b71b99c777df8b1d6a107f653500561855 /source/blender/blenkernel/BKE_unit.h | |
parent | 3dd5adeed14518ff8b21343d6269732aa36e1cee (diff) |
Move bUnit_getScaleUnit -> BKE_scene_unit_scale
unit.c intentionally doesn't include DNA or BKE headers (except its own)
Diffstat (limited to 'source/blender/blenkernel/BKE_unit.h')
-rw-r--r-- | source/blender/blenkernel/BKE_unit.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/blenkernel/BKE_unit.h b/source/blender/blenkernel/BKE_unit.h index c7847947d33..b351bc6fe3e 100644 --- a/source/blender/blenkernel/BKE_unit.h +++ b/source/blender/blenkernel/BKE_unit.h @@ -31,8 +31,6 @@ extern "C" { #endif -struct UnitSettings; - /* 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) */ @@ -41,11 +39,6 @@ size_t bUnit_AsString(char *str, int len_max, double value, int prec, int syste /* replace units with values, used before python button evaluation */ bool bUnit_ReplaceString(char *str, int len_max, const char *str_prev, double scale_pref, int system, int type); -/* Apply the needed correction factor to value, based on unit_type (only length-related are affected currently) - * and unit->scale_length. - */ -double bUnit_getScaleUnit(struct UnitSettings *unit, const int unit_type, double value); - /* make string keyboard-friendly: 10µm --> 10um */ void bUnit_ToUnitAltName(char *str, int len_max, const char *orig_str, int system, int type); |