diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-12-15 10:35:16 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-12-15 10:35:16 +0300 |
commit | faf638238dc5147fa3b9c5cc4999bda907acd6f7 (patch) | |
tree | 9d91470d9e5d233524c2aff5df87067a642d4ffe /source/blender/include | |
parent | b71d55b055ec0bd4be54b5d127eaab9d87e89b37 (diff) |
== Auto-IK ==
-- Peach request (from wiki feature request list) --
When translating a bone using Auto-IK, you can now use the ScrollWheel on the Mouse or the Page Up/Down keys to adjust the chain length.
Notes:
* Up decreases the length, while Down increases it.
* The previously used chain-length is stored per scene
* Currently, it might be too sensitive. Also, it would help to have some kind of indication of the current chain-length somewhere...
* The chain length specified this way determines the MAXIMUM chain length possible for all chains (if 0, then the default chain-length is used). Chains are clamped to have a chain length which does not exceed the default chain length. This restriction may be removed following further feedback...
Diffstat (limited to 'source/blender/include')
-rw-r--r-- | source/blender/include/transform.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/include/transform.h b/source/blender/include/transform.h index 52eb3edf19f..b2a3913465f 100644 --- a/source/blender/include/transform.h +++ b/source/blender/include/transform.h @@ -230,7 +230,7 @@ typedef struct TransInfo { // for manipulator exceptions, like scaling using center point, drawing help lines #define T_USES_MANIPULATOR (1 << 7) -/* restrictions flags */ + /* restrictions flags */ #define T_ALL_RESTRICTIONS ((1 << 8)|(1 << 9)|(1 << 10)) #define T_NO_CONSTRAINT (1 << 8) #define T_NULL_ONE (1 << 9) @@ -239,14 +239,17 @@ typedef struct TransInfo { #define T_PROP_EDIT (1 << 11) #define T_PROP_CONNECTED (1 << 12) -/* if MMB is pressed or not */ + /* if MMB is pressed or not */ #define T_MMB_PRESSED (1 << 13) #define T_V3D_ALIGN (1 << 14) -#define T_2D_EDIT (1 << 15) /* for 2d views like uv or ipo */ + /* for 2d views like uv or ipo */ +#define T_2D_EDIT (1 << 15) #define T_CLIP_UV (1 << 16) #define T_FREE_CUSTOMDATA (1 << 17) + /* auto-ik is on */ +#define T_AUTOIK (1 << 18) /* ******************************************************************************** */ @@ -375,6 +378,8 @@ void sort_trans_data_dist(TransInfo *t); void add_tdi_poin(float *poin, float *old, float delta); void special_aftertrans_update(TransInfo *t); +void transform_autoik_update(TransInfo *t, short mode); + /* auto-keying stuff used by special_aftertrans_update */ void autokeyframe_ob_cb_func(struct Object *ob, int tmode); void autokeyframe_pose_cb_func(struct Object *ob, int tmode, short targetless_ik); @@ -458,3 +463,4 @@ char handleNumInput(NumInput *n, unsigned short event); #endif + |