Blender Git Loki

Git Commits -> Revision cd23e89

Revision cd23e89 by Bastien Montagne (master)
October 11, 2018, 15:36 (GMT)
Fix (unreported) wrong 'use_sep' setting for menu items.

This option defines whether or not menu items drawing code must
separate drawstring in two, keeping right part at all cost.

This is used to show shortcuts of operators' enum entries usually.

Previous way to decide that was based on button having an RNA prop
pointer, assuming those without it were not 'data buttons' and hence
needed the shortcut special handling thingy.

That's wrong is many, many cases (especially since search templates
often generate more than one buttons, not all linked to actual RNA
data). So instead now checking whether a button has an optype set or
not, hopefully this will be much more accurate...

Other solution if thsi also fails, is to add new flag to buttons, and
explicitely set it when needed, instead of trying to guesstimate...

Commit Details:

Full Hash: cd23e89634bb79893abadea27d22839e0db47878
Parent Commit: 4add090
Lines Changed: +3, -2

1 Modified Path:

/source/blender/editors/interface/interface_region_search.c (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021