diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-02-06 19:40:14 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-02-06 19:40:14 +0300 |
commit | 84e2de8ca7a86334c604e4476cf2938c8b444fcb (patch) | |
tree | ffc5051f2064d28259a81bea763b4e01cfaf9869 /source/blender/editors/transform/transform_orientations.c | |
parent | 14f180fa04bd9732d603f15e3acccbc803adb8f9 (diff) |
2.5: ID datablock button back, previously known as std_libbuttons. The
way this worked in 2.4x wasn't really clean, with events going all over
the place and using dubious variables such as G.but->lockpoin or
G.sima->menunr. It works as follows now, for example:
xco= uiDefIDPoinButs(block, CTX_data_main(C), NULL, (ID**)&sima->image, ID_IM, &sima->pin, xco, yco,
sima_idpoin_handle, UI_ID_BROWSE|UI_ID_RENAME|UI_ID_ADD_NEW|UI_ID_OPEN|UI_ID_DELETE|UI_ID_ALONE|UI_ID_PIN);
The last two parameters are a callback function, and a list of events
or functionalities that are supported. The callback function will then
get the ID pointer + event to handle.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 35d7cb36343..ec64d1483a1 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -356,7 +356,6 @@ void BIF_selectTransformOrientationValue(bContext *C, int orientation) { void BIF_menuTransformOrientation(bContext *C, uiMenuItem *head, void *arg) { - char menu[] = "%t|Global%x0|Local%x1|Normal%x2|View%x3"; ListBase *transform_spaces = &CTX_data_scene(C)->transform_spaces; TransformOrientation *ts; int i= V3D_MANIP_CUSTOM; |