Blender Git Loki

Git Commits -> Revision 0123c7d

Revision 0123c7d by Bastien Montagne (master)
June 9, 2013, 16:18 (GMT)
This commit replaces old "manual" Editors menu with nice RNA-based one (so once again, some cleanup of old UI code). It makes the following changes:

* RNA's editor types enum (space_type_items) has been re-ordered, added icons, and removed internal-only SPACE_EMPTY value, so that it matches the menu.

* Two fixes in code drawing enums as dropdown menu:
** All items were taken into account when computing the number of needed columns, now simple separators (void string items) are ignored.
** Simple separators items were drawn as labels, taking far too much space!

And now translators will be free from that ugly, insane menu-string! :P

Thanks to Brecht for the review.

Commit Details:

Full Hash: 0123c7d2be0036435192318a2a3fa7949bc3d5f7
SVN Revision: 57316
Parent Commit: 49115b4
Lines Changed: +64, -94

4 Modified Paths:

/source/blender/editors/interface/interface_regions.c (+27, -15) (Diff)
/source/blender/editors/screen/area.c (+11, -60) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+23, -18) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021