From 735e287271647d317942c69f23f1753ca2f2075d Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Tue, 29 Aug 2017 15:23:47 +0300 Subject: 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*. --- source/blender/blenkernel/intern/constraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3