diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-10 08:52:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-10 08:52:16 +0300 |
commit | 3ad8fd44c4047d0ee95eca50de066ad87419c738 (patch) | |
tree | ecc07527b1f39de1f2b660318dcbeca02d405956 /source/blender/editors/mesh/editmesh_mods.c | |
parent | 6a324428554a5a01da58af810fd18f7b12a1f373 (diff) |
request from Jedrzej Slewczuk's:
Option for tagging creases (Ctrl+RMB) to also re-unwrap the mesh.
In 2.42 this could be done by setting rt==8 (very hidden), now its a little less hidden (in the toolbar).
Diffstat (limited to 'source/blender/editors/mesh/editmesh_mods.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_mods.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c index 50ea99f46ba..5075ae94f8d 100644 --- a/source/blender/editors/mesh/editmesh_mods.c +++ b/source/blender/editors/mesh/editmesh_mods.c @@ -79,6 +79,7 @@ editmesh_mods.c, UI level access, no geometry changes #include "ED_mesh.h" #include "ED_screen.h" #include "ED_view3d.h" +#include "ED_uvedit.h" #include "BIF_gl.h" @@ -2201,7 +2202,15 @@ static void mouse_mesh_shortest_path(bContext *C, short mval[2]) me->drawflag |= ME_DRAWBWEIGHTS; break; } - + + /* live unwrap while tagging */ + if( (vc.scene->toolsettings->edge_mode_live_unwrap) && + (vc.scene->toolsettings->edge_mode == EDGE_MODE_TAG_SEAM) && + (CustomData_has_layer(&em->fdata, CD_MTFACE)) + ) { + ED_unwrap_lscm(vc.scene, vc.obedit, FALSE); /* unwrap all not just sel */ + } + DAG_id_tag_update(vc.obedit->data, 0); WM_event_add_notifier(C, NC_GEOM|ND_SELECT, vc.obedit->data); } |