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:
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!)
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue