Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-10-09 19:36:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-09 19:36:04 +0400
commit1255b1e82dae4db4cc6f1fab1e80e831cbee583b (patch)
tree7710f60162c82d2dba48d24c942021e6d50a90db
parent4109d5565f11587cc28e9a8d9a4db28e7d313ec2 (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.c5
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))