Bugfix [#27095] B-Bone doesn´t resize correctly with numeric input

B-Bone resizing was acting more like translation than resizing when using numeric input. Added the flag to set all xyz values to same value when using numeric input
This commit is contained in:
Joshua Leung 2011-04-21 12:48:07 +00:00
parent c7536d558b
commit 2e9982f420

@ -4101,6 +4101,7 @@ void initBoneSize(TransInfo *t)
t->idx_max = 2; t->idx_max = 2;
t->num.idx_max = 2; t->num.idx_max = 2;
t->num.flag |= NUM_NULL_ONE; t->num.flag |= NUM_NULL_ONE;
t->num.flag |= NUM_AFFECT_ALL;
t->snap[0] = 0.0f; t->snap[0] = 0.0f;
t->snap[1] = 0.1f; t->snap[1] = 0.1f;
t->snap[2] = t->snap[1] * 0.1f; t->snap[2] = t->snap[1] * 0.1f;
@ -5452,7 +5453,7 @@ static void doAnimEdit_SnapFrame(TransInfo *t, TransData *td, TransData2D *td2d,
/* snap key to nearest frame? */ /* snap key to nearest frame? */
if (autosnap == SACTSNAP_FRAME) { if (autosnap == SACTSNAP_FRAME) {
const Scene *scene= t->scene; const Scene *scene= t->scene;
const short doTime= 0; //XXX doesn't work - getAnimEdit_DrawTime(t); const short doTime= 0; //getAnimEdit_DrawTime(t); // NOTE: this works, but may be confusing behaviour given the option's label, hence disabled
const double secf= FPS; const double secf= FPS;
double val; double val;