diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-27 18:58:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-27 18:58:05 +0300 |
commit | 2117680094cf64bc383c1da13046e0d81338773c (patch) | |
tree | cd674e34cd2b39d62b6e683c59d7cc39bc945026 /source/blender/editors | |
parent | 2cbd7cc269f757c3a41346db19ad1fa5822701a0 (diff) |
UI: Fix assert cause by vertex count being too small.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 5b2ccf9d4f4..6459c164075 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -870,7 +870,7 @@ static void widgetbase_draw(uiWidgetBase *wtb, uiWidgetColors *wcol) immUniformColor4ubv(tcol); /* for each AA step */ - immBegin(GWN_PRIM_TRIS, (wtb->tria1.tot + wtb->tria2.tot) * 3); + immBegin(GWN_PRIM_TRIS, (wtb->tria1.tot + wtb->tria2.tot) * 3 * WIDGET_AA_JITTER); if (wtb->tria1.tot){ shape_preset_draw_trias_aa(&wtb->tria1, pos); } |