Blender Git Commit Log

Git Commits -> Revision eb6ef53

Revision eb6ef53 by Daniel Dunbar (master)
January 8, 2004, 19:53 (GMT)
- committed new uiDef{Icon,IconText,}ButBit? functions
- change object draw flag buttons to use new functions (just an example)

While I probably wouldn't recommend patching other buttons to use the new
functions a week before release, it is a good (simple but tedious) project
to complete. Note that some code actually defined the constants for the
bit index, when such code is fixed the _BIT constant should be removed from
the headers.

Example:
DNA_constraint_types.h:
#define CONSTRAINT_DISABLE 0x00000004
#define CONSTRAINT_DISABLE_BIT 2

buttons_object.c:
uiDefIconButS(block, ICONTOG|BIT|CONSTRAINT_EXPAND_BIT, ...);

The button definition should change to:
uiDefIconButBitS(block, ICONTOG, CONSTRAINT_EXPAND, ...);

(whats that, the more correct way uses less typing, GOOD GOD!)
and the CONSTRAINT_DISABLE_BIT define should be removed.

Commit Details:

Full Hash: eb6ef538e95835332cfd6da6b030160565bcc02b
SVN Revision: 1874
Parent Commit: 239edfc
Lines Changed: +112, -4

3 Modified Paths:

/source/blender/include/BIF_interface.h (+12, -0) (Diff)
/source/blender/src/buttons_object.c (+4, -4) (Diff)
/source/blender/src/interface.c (+96, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021