diff options
author | Matt Ebb <matt@mke3.net> | 2009-01-04 10:50:41 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-01-04 10:50:41 +0300 |
commit | 74f9e98c828c17910405092785633373d4ae88e8 (patch) | |
tree | ecbb6c22c0a67b36047a3b42373a40d00ec3226c /source/blender/editors/interface/interface.c | |
parent | 0feedfe591f46667efdd0a70e3e29cd2e10927dd (diff) |
* Enabled disabled drawing for 'locked' buttons
(made with uiBlockSetButLock())
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; } |