Blender Git Commit Log

Git Commits -> Revision 24e57ee

Revision 24e57ee by Sybren A. Stüvel (master)
November 27, 2020, 11:11 (GMT)
Fix T82156: Object with constraints translates when parented

Avoid the evaluation of constraints when computing the parent-inverse
matrix.

Constraints are meant to be evaluated last; object transforms are
computed this order:

1. `parent->obmat` (the parent object's world matrix)
2. `ob->parentinv` (the object's parent-inverse matrix)
3. Object's loc/rot/scale
4. Object's constraint evaluation

When the constraints are used to compute the parent-inverse matrix,
their effect is moved from step 4 to step 2 in this list, potentially
rotating or scaling the object's local transform. This causes unwanted
movement as reported in T82156.

Reviewed By: looch

Differential Revision: https://developer.blender.org/D9413

Commit Details:

Full Hash: 24e57eea4325bf39617114c182430691d74c78e9
Parent Commit: e4b6afb
Lines Changed: +5, -1

1 Modified Path:

/source/blender/blenkernel/intern/object.c (+5, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021