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>2006-09-25 10:11:16 +0400
committerMatt Ebb <matt@mke3.net>2006-09-25 10:11:16 +0400
commit6b775741c09b5d3848aae807bfd438dfa0693ae3 (patch)
treeeffddf3a830bacf133a98d7fdf00efde0cac3a71
parent2e7aa1dbf5fbc982e4b0aa43c910a1e92dbd103b (diff)
* Gave curve transforms Tilt and Shrink/Fatten a home in the v3d menu
-rw-r--r--source/blender/src/header_view3d.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/source/blender/src/header_view3d.c b/source/blender/src/header_view3d.c
index 59b37e42c60..42dc0343aea 100644
--- a/source/blender/src/header_view3d.c
+++ b/source/blender/src/header_view3d.c
@@ -1576,6 +1576,14 @@ static void do_view3d_transformmenu(void *arg, int event)
case 12:
docentre_cursor();
break;
+ case 13:
+ initTransform(TFM_TILT, CTX_NONE);
+ Transform();
+ break;
+ case 14:
+ initTransform(TFM_CURVE_SHRINKFATTEN, CTX_NONE);
+ Transform();
+ break;
}
allqueue(REDRAWVIEW3D, 0);
}
@@ -1600,9 +1608,13 @@ static uiBlock *view3d_transformmenu(void *arg_unused)
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
if (G.obedit) {
- if (G.obedit->type == OB_MESH)
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Shrink/Fatten Along Normals|Alt S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 9, "");
- }
+ if (G.obedit->type == OB_MESH)
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Shrink/Fatten Along Normals|Alt S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 9, "");
+ else if (G.obedit->type == OB_CURVE) {
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Tilt|T", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 13, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Shrink/Fatten Radius|Alt S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 14, "");
+ }
+ }
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "To Sphere|Ctrl Shift S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 5, "");
if (G.obedit) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Shear|Ctrl S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 6, "");
else uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Shear|Ctrl Shift Alt S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 6, "");