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. :)
This commit is contained in:
2005-05-08 12:00:28 +00:00
parent 744bb6f19a
commit eec4e32714
9 changed files with 71 additions and 13 deletions

View File

@@ -4132,8 +4132,10 @@ void adduplicate(float *dtrans)
clear_id_newpoins();
countall();
if(dtrans==0) Transform(TFM_TRANSLATION, CTX_NONE);
if(dtrans==0) {
BIF_TransformSetUndo("Add Duplicate");
Transform(TFM_TRANSLATION, CTX_NONE);
}
set_active_base(BASACT);
allqueue(REDRAWNLA, 0);