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:
authorClément Foucault <foucault.clem@gmail.com>2018-04-17 16:53:49 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-04-17 16:53:49 +0300
commitd442e0ad63ac54c92acc4d66af9b1e27c025a23e (patch)
treec6cb47b1df1268806a8924eaca21e636d8cab416
parentb229c879c1d422b9fe710ca3e163be191cdabab3 (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.c2
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);