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>2009-12-03 13:18:47 +0300
committerJoshua Leung <aligorith@gmail.com>2009-12-03 13:18:47 +0300
commit42970d81fce4b0bba7aab74277cf281bd0cda2eb (patch)
treed83a63faeb26001db1db46ff1ceae93c2da91c22 /source/blender/editors/transform/transform_conversions.c
parentcbab6e57dc8176dc2a4b380e81993612b0df7825 (diff)
Bugfix #20190: Scaling Bone Joints in envelope drawmode
Made scaling selected joints using SKEY work in the same way as in 2.4x However, it'd probably be nice to be able to have separate hotkeys for this at a later stage.
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r--source/blender/editors/transform/transform_conversions.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 33e37ec8536..4627db7e89c 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1056,7 +1056,15 @@ static void createTransArmatureVerts(bContext *C, TransInfo *t)
ListBase *edbo = arm->edbo;
TransData *td;
float mtx[3][3], smtx[3][3], delta[3], bonemat[3][3];
-
+
+ /* special hack for envelope drawmode and scaling:
+ * to allow scaling the size of the envelope around single points,
+ * mode should become TFM_BONE_ENVELOPE in this case
+ */
+ // TODO: maybe we need a separate hotkey for it, but this is consistent with 2.4x for now
+ if ((t->mode == TFM_RESIZE) && (arm->drawtype==ARM_ENVELOPE))
+ t->mode= TFM_BONE_ENVELOPE;
+
t->total = 0;
for (ebo = edbo->first; ebo; ebo = ebo->next)
{