diff options
author | Ton Roosendaal <ton@blender.org> | 2005-05-08 16:00:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-05-08 16:00:28 +0400 |
commit | eec4e3271442808f47bc8f4226b82692ffbcc541 (patch) | |
tree | 2db20ec32afc3f52eaec7ff2341fb738b122d652 /source/blender/src/editcurve.c | |
parent | 744bb6f19a4e0679bc047c0311a187d2121eb23b (diff) |
Another Transform todo: correct Undo names for using Transform.
Martin; I've added calls like:
BIF_TransformSetUndo("Add Duplicate");
In advance of calling transform itself, to indicate that this is the
string name to be used for Undo, and also has to be done on ESC.
To make that possible I had to add a memset() to zero the global struct
TransInfo. Nicely done with if(Trans.mode==TRANS_INIT)
Not sure how this relates to setting constraints in advance... I always
found it tricky to work a non-initalized global struct. :)
Diffstat (limited to 'source/blender/src/editcurve.c')
-rw-r--r-- | source/blender/src/editcurve.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c index ec956b8e991..e4610015e25 100644 --- a/source/blender/src/editcurve.c +++ b/source/blender/src/editcurve.c @@ -2793,7 +2793,10 @@ void addvert_Nurb(int mode) allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWBUTSEDIT, 0); - if(mode=='e') Transform(TFM_TRANSLATION, CTX_NO_PET); + if(mode=='e') { + BIF_TransformSetUndo("Extrude"); + Transform(TFM_TRANSLATION, CTX_NO_PET); + } else while(get_mbut()&R_MOUSE) BIF_wait_for_statechange(); if(mode!='e') { @@ -2828,8 +2831,8 @@ void extrude_nurb() if(ok) { makeDispList(G.obedit); - BIF_undo_push("Extrude"); countall(); + BIF_TransformSetUndo("Extrude"); Transform(TFM_TRANSLATION, CTX_NO_PET); } } @@ -3058,6 +3061,7 @@ void adduplicate_nurb() adduplicateflagNurb(1); countall(); + BIF_TransformSetUndo("Add Duplicate"); Transform(TFM_TRANSLATION, CTX_NO_PET); } |