Fix #112580: Limit Constraint with 'Affect Transform' not working properly in 'World Space' #112601

Merged
Germano Cavalcante merged 4 commits from mano-wii/blender:fix_112580 into main 2023-10-06 17:14:36 +02:00

4 Commits

Author SHA1 Message Date
Germano Cavalcante 139c6f4655 Fix duplicate rotation and scale transformation 2023-09-20 17:43:02 -03:00
Germano Cavalcante 9a5bf5c1e8 Also use the component's local matrix 2023-09-20 17:32:37 -03:00
Germano Cavalcante 844409bba1 Merge remote-tracking branch 'origin/main' into fix_112580 2023-09-20 16:37:55 -03:00
Germano Cavalcante 2738725e0e Fix #112580: Limit Constraint with 'Affect Transform' not working properly in 'World Space'
The problem is observed with the Limit Distance and Limit Location
constraints.

There is an incorrect usage of td->mtx and td->smtx when converting
TransData space from local to global.

In this case, the code is concatenating matrices instead of converting
the location component space.

Since the Limit Distance and Limit Location constraints only require
the location component, it is not necessary to convert the rotation and
scale components.

So, the solution is to convert the location component space instead of
concatenating matrices.
2023-09-19 17:02:43 -03:00