Blender Git Commit Log

Git Commits -> Revision d2c52d4

Revision d2c52d4 by Julian Eisel (master)
September 3, 2020, 15:46 (GMT)
Cleanup: Add/use function to disable buttons with a disabled hint

We do this in a couple of places, so it's worth having the logic wrapped
into a function.
Also, the only way to set the disabled hint for a button from outside of
`interface/` was through `UI_block_lock_set()`/`UI_block_lock_clear()`,
for which the usage isn't obvious when you just try to disable a single
button.

Commit Details:

Full Hash: d2c52d4de2ca20dd2ba0254dd6207a70e9bd0597
Parent Commit: d8a80e5
Lines Changed: +18, -12

3 Modified Paths:

/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/interface.c (+15, -10) (Diff)
/source/blender/editors/interface/interface_layout.c (+1, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021