diff options
author | Chris Blackbourn <chrisbblend@gmail.com> | 2022-11-08 22:37:14 +0300 |
---|---|---|
committer | Chris Blackbourn <chrisbblend@gmail.com> | 2022-11-08 22:50:53 +0300 |
commit | c6aacd718a51dea2f0736280a6bd605898a320f2 (patch) | |
tree | 36ae0dc3a28a6a261f9fbddc5b26e1147e252882 /source/blender/bmesh/intern/bmesh_query_uv.cc | |
parent | 96d8e5e66b9755c2fb77b6ef37b256d78c904166 (diff) |
Cleanup: Improve precision during UV packing.
Simplify API and improve accuracy of uv packing placement
by using pre-translation and double precision internally.
Will protect against future precision problems with UDIM.
No user visible changes expected.
Maniphest Tasks: T68889
Differential Revision: https://developer.blender.org/D16362
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_query_uv.cc')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_query_uv.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/bmesh/intern/bmesh_query_uv.cc b/source/blender/bmesh/intern/bmesh_query_uv.cc index 33b2ca7a828..0e2385ff4e2 100644 --- a/source/blender/bmesh/intern/bmesh_query_uv.cc +++ b/source/blender/bmesh/intern/bmesh_query_uv.cc @@ -113,17 +113,6 @@ void BM_face_uv_minmax(const BMFace *f, float min[2], float max[2], const int cd } while ((l_iter = l_iter->next) != l_first); } -void BM_face_uv_transform(BMFace *f, const float matrix[2][2], const int cd_loop_uv_offset) -{ - BMLoop *l_iter; - BMLoop *l_first; - l_iter = l_first = BM_FACE_FIRST_LOOP(f); - do { - MLoopUV *luv = (MLoopUV *)BM_ELEM_CD_GET_VOID_P(l_iter, cd_loop_uv_offset); - mul_m2_v2(matrix, luv->uv); - } while ((l_iter = l_iter->next) != l_first); -} - bool BM_loop_uv_share_edge_check(BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset) { BLI_assert(l_a->e == l_b->e); |