diff options
author | Alexander Gavrilov <alexander.gavrilov@jetbrains.com> | 2017-08-29 15:23:47 +0300 |
---|---|---|
committer | Alexander Gavrilov <alexander.gavrilov@jetbrains.com> | 2017-08-29 15:23:47 +0300 |
commit | 735e287271647d317942c69f23f1753ca2f2075d (patch) | |
tree | b3f4281fafb1c9997071f6541f0a485ef15f1fbe /source | |
parent | 01bdb0c76edf8315e597cbb2ee82c30c1e35229f (diff) |
Fix T48079: Maintain Volume constraint overcompensates.
The coefficient has been wrong since introduction for some reason.
Not backwards compatible, should not be merged to 2.7*.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index c05feb7faf4..abf1c0905b5 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -1930,7 +1930,7 @@ static void samevolume_evaluate(bConstraint *con, bConstraintOb *cob, ListBase * /* calculate normalizing scale factor for non-essential values */ if (obsize[data->flag] != 0) - fac = sqrtf(volume / obsize[data->flag]) / obsize[data->flag]; + fac = sqrtf(volume / obsize[data->flag]); /* apply scaling factor to the channels not being kept */ switch (data->flag) { |