diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-09 19:36:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-09 19:36:04 +0400 |
commit | 1255b1e82dae4db4cc6f1fab1e80e831cbee583b (patch) | |
tree | 7710f60162c82d2dba48d24c942021e6d50a90db | |
parent | 4109d5565f11587cc28e9a8d9a4db28e7d313ec2 (diff) |
fix [#37007] Save to file - increment number doesn't update background color of filename field if hovered
-rw-r--r-- | source/blender/editors/interface/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index e02cdf018c0..91e5f2fe61d 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -611,6 +611,9 @@ static void ui_but_update_linklines(uiBlock *block, uiBut *oldbut, uiBut *newbut static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut **butpp) { + /* flags from the buttons we want to refresh, may want to add more here... */ + const int flag_copy = UI_BUT_REDALERT; + uiBlock *oldblock; uiBut *oldbut, *but = *butpp; int found = 0; @@ -667,6 +670,8 @@ static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut SWAP(void *, oldbut->func_argN, but->func_argN); } + oldbut->flag = (oldbut->flag & ~flag_copy) | (but->flag & flag_copy); + /* copy hardmin for list rows to prevent 'sticking' highlight to mouse position * when scrolling without moving mouse (see [#28432]) */ if (ELEM(oldbut->type, ROW, LISTROW)) |