diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-03 04:44:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-03 04:44:35 +0300 |
commit | 5b54b519c0719f0598532e80a3ffe671c90e04cd (patch) | |
tree | 251f7a0ac0ba0018aec71b1453e43f09a752af36 /source/blender/src/header_image.c | |
parent | 2d02b0d3636daa485752e6866aba1c63ed66b463 (diff) |
Added a feature to the UV editor- Average UV islands, this averages selected UV islands, in proportion to the faces area in 3d space.
Renamed 'Pack Charts' to 'Pack Islands' (according to google, uv islands is a more common term)
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index 7a8f2849881..51fd0fab718 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -1043,6 +1043,9 @@ static void do_image_uvsmenu(void *arg, int event) case 13: pack_charts_tface_uv(); break; + case 14: + average_charts_tface_uv(); + break; } } @@ -1075,7 +1078,8 @@ static uiBlock *image_uvsmenu(void *arg_unused) uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Pack Charts|Ctrl P", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 13, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Pack Islands|Ctrl P", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 13, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Average Islands Scale|Ctrl A", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 14, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Minimize Stretch|Ctrl V", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 12, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Limit Stitch...|Shift V", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 3, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Stitch|V", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, ""); |