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.
This commit is contained in:
Joshua Leung
2009-12-03 10:18:47 +00:00
parent cbab6e57dc
commit 42970d81fc

View File

@@ -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)
{