Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2019-06-20 16:13:27 +0300
committerSebastian Parborg <darkdefende@gmail.com>2019-06-20 16:15:02 +0300
commitce57185ffb4bc3841d65e2902ef2388dc3d18cb6 (patch)
treeb3e9c1f643e134d4f159d7123fe0ecb900f4f228 /source/blender/editors/uvedit/uvedit_unwrap_ops.c
parent7d83e7a9dffe8bb24217d749c33cdb24f3b7dc49 (diff)
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
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_unwrap_ops.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index bb73d61a139..14cdb674698 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -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);