Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-01-09 15:44:03 +0400
committerJoshua Leung <aligorith@gmail.com>2014-01-09 15:48:43 +0400
commit0445454f1e9409058c465b80c180ca8c25b45772 (patch)
treeba60a7ad1758d09ae1e49c03e49d21a835b984aa /source/blender/editors/armature/armature_ops.c
parentda6bc87b57d208c7a35015c30ea7fde55dd829cf (diff)
Fix T38077: Scaling bones in EditMode drawn using envelope display mode scales joint radii instead
When trying to scale bones in EditMode and the bones were drawn using envelope display mode, this resulted in the joint radii (i.e. the inner part of envelopes) being adjusted instead. It turns out that this was due to an old hack that was put in place back in 2.4x (see the tracker logs for full details of the problem here). This commit introduces the following fixes: 1) Removed the old hack. Scaling (S) works normally now. 2) Ctrl-Alt-S (i.e. "Scale Envelopes/BBones") is as-is. That is, it is used to adjust the size falloff-region around a bone (i.e. the "dist" property) 3) Added Alt-S hotkey in EditMode for armatures for adjusting the radii of bones. This change just means that the "TFM_BONE_ENVELOPE" mode is now able to be accessed from the UI as a tool on its own right (instead of being accessible via the old undocumented hack). This tool adjusts the radii of the bone joints, which define the actual full-influence region of the envelopes.
Diffstat (limited to 'source/blender/editors/armature/armature_ops.c')
-rw-r--r--source/blender/editors/armature/armature_ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_ops.c b/source/blender/editors/armature/armature_ops.c
index feb9b0f939a..be23c285cf7 100644
--- a/source/blender/editors/armature/armature_ops.c
+++ b/source/blender/editors/armature/armature_ops.c
@@ -294,7 +294,10 @@ void ED_keymap_armature(wmKeyConfig *keyconf)
/* 1) envelope/b-bone size */
kmi = WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", SKEY, KM_PRESS, KM_CTRL | KM_ALT, 0);
RNA_enum_set(kmi->ptr, "mode", TFM_BONESIZE);
- /* 2) set roll */
+ /* 2) envelope radius */
+ kmi = WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", SKEY, KM_PRESS, KM_ALT, 0);
+ RNA_enum_set(kmi->ptr, "mode", TFM_BONE_ENVELOPE);
+ /* 3) set roll */
kmi = WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", RKEY, KM_PRESS, KM_CTRL, 0);
RNA_enum_set(kmi->ptr, "mode", TFM_BONE_ROLL);