Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAlexander Gavrilov <alexander.gavrilov@jetbrains.com>2017-08-29 15:23:47 +0300
committerAlexander Gavrilov <alexander.gavrilov@jetbrains.com>2017-08-29 15:23:47 +0300
commit735e287271647d317942c69f23f1753ca2f2075d (patch)
treeb3f4281fafb1c9997071f6541f0a485ef15f1fbe /source
parent01bdb0c76edf8315e597cbb2ee82c30c1e35229f (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.c2
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) {