[Bf-blender-cvs] CVS commit: blender/source/blender/include BIF_interface.h blender/source/blender/src interface.c buttons_object.c
Daniel Dunbar
daniel at zuster.org
Thu Jan 8 20:53:20 CET 2004
zuster (Daniel Dunbar) 2004/01/08 20:53:19 CET
Modified files:
blender/source/blender/include BIF_interface.h
blender/source/blender/src interface.c buttons_object.c
Log:
- 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.
Revision Changes Path
1.26 +13 -1 blender/source/blender/include/BIF_interface.h
1.100 +97 -1 blender/source/blender/src/interface.c
1.23 +4 -4 blender/source/blender/src/buttons_object.c
More information about the Bf-blender-cvs
mailing list