diff options
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 941528169c3..96becbcb4ad 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2035,6 +2035,12 @@ static uiBut *ui_def_but(uiBlock *block, int type, int retval, char *str, short if(block->flag & UI_BLOCK_NO_HILITE) but->flag |= UI_NO_HILITE; + if (but->lock) { + if (but->lockstr) { + but->flag |= UI_BUT_DISABLED; + } + } + return but; } |