Blender Git Commit Log

Git Commits -> Revision 75d1139

Revision 75d1139 by Sybren A. Stüvel (temp-T82156-parenting-and-constraints)
November 2, 2020, 14:20 (GMT)
Fix T82156: Object with Copy Rotation Constraints translates when being parented

Avoid application 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.

This behaviour (erroneously taking the constraints into account) has
been in Blender since the first commit, so historically I can only find
"Initial revision" as context.

Commit Details:

Full Hash: 75d1139fb522b15655efca103f3354e8018fb591
Parent Commit: e5e2a10
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