diff options
author | David Friedli <hlorus> | 2020-09-28 07:24:29 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-28 07:28:28 +0300 |
commit | b1bdfb6e32b9371048677196ac256290cfd35d0b (patch) | |
tree | 1133dc257fe4202338361280b6429167fbe46e87 /source/blender/editors/include/UI_interface.h | |
parent | 8c81b3fb8b9c857626c037fe0c95c5d48a3ca20f (diff) |
Fix T79275: Missing redraw for pinned active tool settings panels
In the 3D view sidebar, the active tool settings panel can be pinned to other
categories, and in those other categories it doesn't redraw when the active
tool changes. This commit checks for pinned panels from the "Tool" category
when checking whether to redraw.
Note that the relatively expensive string comparison is only done for
currently visible pinned panels.
Differential Revision: https://developer.blender.org/D9012
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 376dcb6d811..4f656420b06 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -1685,6 +1685,7 @@ struct Panel *UI_panel_begin(struct ARegion *region, bool *r_open); void UI_panel_end(const struct ARegion *region, uiBlock *block, int width, int height, bool open); +bool UI_panel_is_active(const struct Panel *panel); void UI_panel_label_offset(struct uiBlock *block, int *r_x, int *r_y); int UI_panel_size_y(const struct Panel *panel); bool UI_panel_is_dragging(const struct Panel *panel); |