Fix T65775: UV projection is dependant of the object position
The rotation matrix included the global object offset too. Now we only take into account the actual offset that what sent to the function. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5094
This commit is contained in:
parent
7d83e7a9df
commit
ce57185ffb
Notes:
blender-bot
2023-02-14 19:45:25 +01:00
Referenced by issue #65775, UV projection is dependant of the object position
|
@ -1272,10 +1272,11 @@ static void uv_map_rotation_matrix_ex(float result[4][4],
|
|||
}
|
||||
|
||||
/* but shifting */
|
||||
copy_v4_fl(viewmatrix[3], 0.0f);
|
||||
zero_v3(viewmatrix[3]);
|
||||
|
||||
/* get rotation of the current object matrix */
|
||||
copy_m4_m4(rotobj, ob->obmat);
|
||||
zero_v3(rotobj[3]);
|
||||
|
||||
/* but shifting */
|
||||
add_v4_v4(rotobj[3], offset);
|
||||
|
|
Loading…
Reference in New Issue