Blender Git Commit Log

Git Commits -> Revision 2264375

April 14, 2020, 12:39 (GMT)
Don't use split layout for operator properties if all are checkboxes

Having a split layout looks broken if all items are checkboxes and there
is no heading text, because it only uses half the width then.
So this checks if all visible properties are booleans and if so,
disables the split layout. A bit hacky but this should generally work.
If needed we can add more control in future (e.g. default layout hints
for operators).

Commit Details:

Full Hash: 2264375c77de18f13f165fcd4bc1cf6e3774ea59
Parent Commit: a940f4e
Lines Changed: +248, -205

3 Modified Paths:

/source/blender/editors/include/UI_interface.h (+8, -5) (Diff)
/source/blender/editors/interface/interface_templates.c (+238, -189) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -11) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021