Fix T49408: OpenGL light widget breaks viewport shading

This commit is contained in:
2016-09-20 11:56:37 +02:00
parent f2da63cb12
commit 78c0bc52de

View File

@@ -1255,6 +1255,9 @@ void ui_draw_but_UNITVEC(uiBut *but, uiWidgetColors *wcol, const rcti *rect)
/* matrix after circle */
glPopMatrix();
/* We disabled all blender lights above, so restore them here. */
GPU_default_lights();
}
static void ui_draw_but_curve_grid(const rcti *rect, float zoomx, float zoomy, float offsx, float offsy, float step)