Blender Git Loki

Git Commits -> Revision 84e2de8

Revision 84e2de8 by Brecht Van Lommel (master)
February 6, 2009, 16:40 (GMT)
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.

Commit Details:

Full Hash: 84e2de8ca7a86334c604e4476cf2938c8b444fcb
SVN Revision: 18835
Parent Commit: 14f180f
Lines Changed: +400, -36

8 Modified Paths:

/source/blender/editors/include/UI_interface.h (+24, -4) (Diff)
/source/blender/editors/interface/interface.c (+19, -8) (Diff)
/source/blender/editors/interface/interface_handlers.c (+15, -4) (Diff)
/source/blender/editors/interface/interface_intern.h (+3, -0) (Diff)
/source/blender/editors/interface/interface_utils.c (+298, -19) (Diff)
/source/blender/editors/space_image/image_header.c (+38, -0) (Diff)
/source/blender/editors/space_image/space_image.c (+3, -0) (Diff)
/source/blender/editors/transform/transform_orientations.c (+0, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021