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:
authorTon Roosendaal <ton@blender.org>2005-05-08 16:00:28 +0400
committerTon Roosendaal <ton@blender.org>2005-05-08 16:00:28 +0400
commiteec4e3271442808f47bc8f4226b82692ffbcc541 (patch)
tree2db20ec32afc3f52eaec7ff2341fb738b122d652 /source/blender/src/editmball.c
parent744bb6f19a4e0679bc047c0311a187d2121eb23b (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/editmball.c')
-rw-r--r--source/blender/src/editmball.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/editmball.c b/source/blender/src/editmball.c
index 598125db08f..1ba62b07206 100644
--- a/source/blender/src/editmball.c
+++ b/source/blender/src/editmball.c
@@ -312,6 +312,7 @@ void adduplicate_mball()
ml= ml->prev;
}
+ BIF_TransformSetUndo("Add Duplicate");
Transform(TFM_TRANSLATION, CTX_NO_PET);
allqueue(REDRAWBUTSEDIT, 0);
}