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>2016-02-02 06:13:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-02 06:16:53 +0300
commit3b92a9472c4cee8df98eb79e6be6b2f8b14c8b59 (patch)
tree1655af101632dfb858371345e2f4d8040c4c7f33 /source/blender/editors/interface/interface.c
parent3822a9c01aaa70d119b67f7a86a0a17d25eabc93 (diff)
UI: update dynamic tips
Useful for progress ETA to continuously update. This adds API option not to activate new regions GL state which isn't needed in many cases.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-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 cb2b99dbfb9..ffebd39b693 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1207,6 +1207,11 @@ void UI_block_update_from_old(const bContext *C, uiBlock *block)
for (but = block->buttons.first; but; but = but->next) {
if (ui_but_update_from_old_block(C, block, &but, &but_old)) {
ui_but_update(but);
+
+ /* redraw dynamic tooltip if we have one open */
+ if (but->tip_func) {
+ UI_but_tooltip_refresh((bContext *)C, but);
+ }
}
}