diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-17 16:53:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-17 16:53:49 +0300 |
commit | d442e0ad63ac54c92acc4d66af9b1e27c025a23e (patch) | |
tree | c6cb47b1df1268806a8924eaca21e636d8cab416 | |
parent | b229c879c1d422b9fe710ca3e163be191cdabab3 (diff) |
UI: Fix T54691: Vector icon vs Widget base ordering.
It was making keyframe marker and bone theme color icon disappear under
their button.
-rw-r--r-- | source/blender/editors/interface/interface_icons.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index 682eac6a352..04de8f6c94c 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -1211,6 +1211,8 @@ static void icon_draw_size( h = (int)(fdraw_size / aspect + 0.5f); if (di->type == ICON_TYPE_VECTOR) { + /* We need to flush widget base first to ensure correct ordering. */ + UI_widgetbase_draw_cache_flush(); /* vector icons use the uiBlock transformation, they are not drawn * with untransformed coordinates like the other icons */ di->data.vector.func((int)x, (int)y, w, h, 1.0f); |