diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-24 14:14:24 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-24 17:01:55 +0300 |
commit | d011ae1e0389c6262acdcc2e14122e913cf226c7 (patch) | |
tree | 6bc2b1da774429d53c78bc766a7b62d3b022a313 /source/blender/editors/mesh | |
parent | bd64206e1ac828675aad3b16ffe6f4ecc6e6a409 (diff) |
Fix T59972: UV live unwrap does not pack islands.
Packing was not being called after multi-object editing changes. Includes code
refactoring to make function parameters more clear.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index b8dd46f3cc3..af227ff0eb9 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -1006,10 +1006,16 @@ static int edbm_mark_seam_exec(bContext *C, wmOperator *op) BM_elem_flag_enable(eed, BM_ELEM_SEAM); } } + } + + ED_uvedit_live_unwrap(scene, objects, objects_len); - ED_uvedit_live_unwrap(scene, obedit); + for (uint ob_index = 0; ob_index < objects_len; ob_index++) { + Object *obedit = objects[ob_index]; + BMEditMesh *em = BKE_editmesh_from_object(obedit); EDBM_update_generic(em, true, false); } + MEM_freeN(objects); return OPERATOR_FINISHED; |