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/include | |
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/include')
-rwxr-xr-x | source/blender/include/BIF_transform.h | 3 | ||||
-rwxr-xr-x | source/blender/include/transform.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/include/BIF_transform.h b/source/blender/include/BIF_transform.h index 680b324d917..aea415725c0 100755 --- a/source/blender/include/BIF_transform.h +++ b/source/blender/include/BIF_transform.h @@ -36,6 +36,7 @@ /* ******************** Macros & Prototypes *********************** */ /* MODE AND NUMINPUT FLAGS */ +#define TFM_INIT -1 #define TFM_REPEAT 0 #define TFM_TRANSLATION 1 #define TFM_ROTATION 2 @@ -74,6 +75,8 @@ void BIF_setLocalLockConstraint(char axis, char *text); void BIF_drawConstraint(void); void BIF_drawPropCircle(void); +void BIF_TransformSetUndo(char *str); + /* view3d manipulators */ void ManipulatorTransform(int mode); diff --git a/source/blender/include/transform.h b/source/blender/include/transform.h index 6a1d7ae8445..115e5a57e59 100755 --- a/source/blender/include/transform.h +++ b/source/blender/include/transform.h @@ -152,6 +152,8 @@ typedef struct TransInfo { float vec[3]; /* translation, to show for widget */ float mat[3][3]; /* rot/rescale, to show for widget */ + + char *undostr; /* if set, uses this string for undo */ } TransInfo; |