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:
authorMatt Ebb <matt@mke3.net>2005-10-20 14:31:02 +0400
committerMatt Ebb <matt@mke3.net>2005-10-20 14:31:02 +0400
commit89597ed362052510ffe4c6c6db39fcccf41721c0 (patch)
tree5dae50f8e29e41b70087969e5cdd9e7594f03d3a /source/blender/src/header_image.c
parentdcbba92f28c05cd6ae198fb7ae6609874c02769c (diff)
Adding some simple but very convenient selection
functionality for the UV editor: * A "Select->Pinned UVs" command (Shift P) that selects all the visible pinned UVs * A "Select->Border Select Pinned" tool (Shift B) that works just like the normal border select tool, but only acts on pinned UVs This is really useful when using LSCM, I only want to touch the pinned UVs and then recalculate.
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r--source/blender/src/header_image.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c
index 550c3fca33e..d839323dd83 100644
--- a/source/blender/src/header_image.c
+++ b/source/blender/src/header_image.c
@@ -503,7 +503,10 @@ static void do_image_selectmenu(void *arg, int event)
switch(event)
{
case 0: /* Border Select */
- borderselect_sima();
+ borderselect_sima(UV_SELECT_ALL);
+ break;
+ case 8: /* Border Select Pinned */
+ borderselect_sima(UV_SELECT_PINNED);
break;
case 1: /* Select/Deselect All */
select_swap_tface_uv();
@@ -511,7 +514,7 @@ static void do_image_selectmenu(void *arg, int event)
case 2: /* Unlink Selection */
unlink_selection();
break;
- case 3: /* Select Linked UVs */
+ case 3: /* Linked UVs */
select_linked_tface_uv(2);
break;
case 4: /* Toggle Local UVs Stick to Vertex in Mesh */
@@ -539,6 +542,9 @@ static void do_image_selectmenu(void *arg, int event)
G.sima->flag |= SI_SELACTFACE;
allqueue(REDRAWIMAGE, 0);
break;
+ case 7: /* Pinned UVs */
+ select_pinned_tface_uv();
+ break;
}
}
@@ -561,15 +567,21 @@ static uiBlock *image_selectmenu(void *arg_unused)
if(G.sima->flag & SI_STICKYUVS) uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Stick UVs to Mesh Vertex|Ctrl C", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 5, "");
else uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Stick UVs to Mesh Vertex|Ctrl C", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 5, "");
- uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
+ uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Border Select|B", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 0, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Border Select Pinned|Shift B", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 8, "");
+
+ uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Select/Deselect All|A", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 1, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Unlink Selection|Alt L", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 2, "");
+
+ uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Select Linked UVs|Ctrl L", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 3, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Pinned UVs|Shift P", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 7, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Linked UVs|Ctrl L", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 3, "");
if(curarea->headertype==HEADERTOP) {
uiBlockSetDirection(block, UI_DOWN);