[Bf-blender-cvs] [735e2872716] master: Fix T48079: Maintain Volume constraint overcompensates.
Alexander Gavrilov
noreply at git.blender.org
Tue Aug 29 14:31:12 CEST 2017
Commit: 735e287271647d317942c69f23f1753ca2f2075d
Author: Alexander Gavrilov
Date: Tue Aug 29 15:23:47 2017 +0300
Branches: master
https://developer.blender.org/rB735e287271647d317942c69f23f1753ca2f2075d
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*.
===================================================================
M source/blender/blenkernel/intern/constraint.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list