Fix T40269: Transform Constraint Doesn't Obey World/World Setting (Inherits from Parent instead!)

Revert small part of own rB8714ae09f894, which changed scale setting from absolute to relative
(was good in absolute, but bad because it breaks existing rigs).
This commit is contained in:
Bastien Montagne 2014-05-20 15:21:33 +02:00
parent c28f2ed489
commit 3bba558944
Notes: blender-bot 2023-02-14 10:37:42 +01:00
Referenced by issue #40269, Transform Constraint Doesn't Obey World/World Setting (Inherits from Parent instead!)
1 changed files with 3 additions and 1 deletions

View File

@ -3267,7 +3267,9 @@ static void transform_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t
to_max = data->to_max_scale;
for (i = 0; i < 3; i++) {
/* multiply with original scale (so that it can still be scaled) */
size[i] *= to_min[i] + (sval[(int)data->map[i]] * (to_max[i] - to_min[i]));
/* size[i] *= to_min[i] + (sval[(int)data->map[i]] * (to_max[i] - to_min[i])); */
/* Stay absolute, else it breaks existing rigs... sigh. */
size[i] = to_min[i] + (sval[(int)data->map[i]] * (to_max[i] - to_min[i]));
}
break;
case TRANS_ROTATION: