Blender Git Loki

Git Commits -> Revision 881dbac

Revision 881dbac by Bastien Montagne (master)
June 19, 2013, 19:37 (GMT)
This commit tackles the "context" buttons in Properties header, which were still using "ugly" old UI code.

It removes buttons_header.c file, adds a (small) space_properties.py one, with a PROPERTIES_HT_header class, which simply uses the RNA enum to draw the context buttons.
It also fixes that enum, btw, it always featured all contexts, which means you could (try to!) set through RNA invalid contexts...

Thanks to brecht and dingto for the reviews.

Commit Details:

Full Hash: 881dbac5d93cffd2f6a9f5c3896d1c84ebfd0ce5
SVN Revision: 57584
Parent Commit: d54d00e
Lines Changed: +144, -175

1 Added Path:

/release/scripts/startup/bl_ui/space_properties.py (+46, -0) (View)

1 Deleted Path:

/source/blender/editors/space_buttons/buttons_header.c (+0, -140)

5 Modified Paths:

/release/scripts/startup/bl_ui/__init__.py (+1, -0) (Diff)
/source/blender/editors/space_buttons/buttons_intern.h (+0, -3) (Diff)
/source/blender/editors/space_buttons/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+7, -12) (Diff)
/source/blender/makesrna/intern/rna_space.c (+90, -19) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021