Bugfix: softshadow in menus was broken.
authorTon Roosendaal <ton@blender.org>
Sun, 9 Dec 2012 11:57:06 +0000 (11:57 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 9 Dec 2012 11:57:06 +0000 (11:57 +0000)
Already since like 2.61 - when Array draw was added - drawing only shadow
in bottom of menus with bad looking corners.

source/blender/editors/interface/interface_widgets.c

index 527f383c837912cf8473e7201113fdcd233d753f..c4b80f0a42fe526dc6dd5a180bf252521fb7e2e3 100644 (file)
@@ -651,8 +651,8 @@ static void widget_verts_to_quad_strip_open(uiWidgetBase *wtb, const int totvert
        for (a = 0; a < totvert; a++) {
                quad_strip[a * 2][0] = wtb->outer_v[a][0];
                quad_strip[a * 2][1] = wtb->outer_v[a][1];
-               quad_strip[a * 2 + 1][0] = wtb->outer_v[a][0];
-               quad_strip[a * 2 + 1][1] = wtb->outer_v[a][1] - 1.0f;
+               quad_strip[a * 2 + 1][0] = wtb->inner_v[a][0];
+               quad_strip[a * 2 + 1][1] = wtb->inner_v[a][1];
        }
 }