diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-01-24 23:11:54 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-01-24 23:11:54 +0300 |
commit | 450b3664e1592a2b17491b6b229d8e6808ac8ee4 (patch) | |
tree | 0221c0ecb87fe50a26fd72c7beead633957bacd2 /source/blender/src/editobject.c | |
parent | 9c02ca37d62a3c86bef1e72330246795ca1bce72 (diff) |
=== Mirror Tool ===
Making the mirror tool axis selection interactive instead of using a popmenu.
Mirror is now just a constant -1 scaling transform, which enables you to choose the mirror axis through hotkeys (x,y,z) and with MMB. It also means it's easier to select the correct axis if you're not sure which is which and gives access to all the orientation supported in transform (including custom user orientations).
Mesh and Object header menus still have the individual axis as options but have an added "Interactive Mirror" which just enters transform and lets user pick the axis there. Ctrl-M enters "Interactive Mirror" too.
In a nutshell, this changes adds more possible mirroring axis and unifies the mirror axis selection process with transform constraint axis selection.
Diffstat (limited to 'source/blender/src/editobject.c')
-rw-r--r-- | source/blender/src/editobject.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 90b0e8c048e..2e96ea464fa 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -5574,17 +5574,9 @@ void mirrormenu(void) if(G.f & G_PARTICLEEDIT) { PE_mirror_x(0); } - else if (G.obedit==0) { - mode=pupmenu("Mirror Axis %t|X Local%x4|Y Local%x5|Z Local%x6|"); - - if (mode==-1) return; /* return */ - Mirror(mode); /* separating functionality from interface | call*/ - } else { - mode=pupmenu("Mirror Axis %t|X Global%x1|Y Global%x2|Z Global%x3|%l|X Local%x4|Y Local%x5|Z Local%x6|%l|X View%x7|Y View%x8|Z View%x9|"); - - if (mode==-1) return; /* return */ - Mirror(mode); /* separating functionality from interface | call*/ + initTransform(TFM_MIRROR, CTX_NO_PET); + Transform(); } } |