Fix scale in Apply Pose As Rest Pose for bendy bones.

Scale is multiplicative, and adding it up causes the bone to bloat.
This commit is contained in:
Alexander Gavrilov 2018-07-07 14:41:29 +03:00
parent 97cd8bfae1
commit 5480de3fca
1 changed files with 2 additions and 2 deletions

View File

@ -164,8 +164,8 @@ static int apply_armature_pose2bones_exec(bContext *C, wmOperator *op)
curbone->roll2 += pchan->roll2;
curbone->ease1 += pchan->ease1;
curbone->ease2 += pchan->ease2;
curbone->scaleIn += pchan->scaleIn;
curbone->scaleOut += pchan->scaleOut;
curbone->scaleIn *= pchan->scaleIn;
curbone->scaleOut *= pchan->scaleOut;
pchan->curveInX = pchan->curveOutX = 0.0f;
pchan->curveInY = pchan->curveOutY = 0.0f;