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:
authorTon Roosendaal <ton@blender.org>2012-12-09 15:57:06 +0400
committerTon Roosendaal <ton@blender.org>2012-12-09 15:57:06 +0400
commit55e55e21b0a6ae65da20a4449d87b4a29cc0ed88 (patch)
tree9d6f0f651e3dda34bc6d1d70db23cbc521f302e0
parenta1ec96cf4e33d3133bd75a824998ba54d3d40f4b (diff)
Bugfix: softshadow in menus was broken.
Already since like 2.61 - when Array draw was added - drawing only shadow in bottom of menus with bad looking corners.
-rw-r--r--source/blender/editors/interface/interface_widgets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index 527f383c837..c4b80f0a42f 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -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];
}
}