From 8641833b57606a2ac21f7c83b53ea5fc55664815 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 12 Aug 2009 08:16:10 +0000 Subject: Set the clickstep for unit buttons to each click moves 1 unit. --- source/blender/blenkernel/BKE_unit.h | 3 +++ 1 file changed, 3 insertions(+) (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 6b72c01bf0a..91b1702ca82 100644 --- a/source/blender/blenkernel/BKE_unit.h +++ b/source/blender/blenkernel/BKE_unit.h @@ -36,6 +36,9 @@ void bUnit_AsString(char *str, double value, int prec, int system, int type, int /* 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); +/* the size of the unit used for this value (used for calculating the ckickstep) */ +double bUnit_Size(double value, int system, int type); + #ifdef __cplusplus } #endif -- cgit v1.2.3