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/editmesh_add.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/editmesh_add.c')
-rw-r--r-- | source/blender/src/editmesh_add.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/editmesh_add.c b/source/blender/src/editmesh_add.c index 6a7b11bbc42..f57fe178360 100644 --- a/source/blender/src/editmesh_add.c +++ b/source/blender/src/editmesh_add.c @@ -437,6 +437,7 @@ void adduplicate_mesh(void) waitcursor(0); countall(); + BIF_TransformSetUndo("Add Duplicate"); Transform(TFM_TRANSLATION, CTX_NO_PET); } |