Fix T49408: OpenGL light widget breaks viewport shading

This commit is contained in:
Sergey Sharybin 2016-09-20 11:56:37 +02:00
parent f2da63cb12
commit 78c0bc52de
Notes: blender-bot 2023-02-14 10:29:32 +01:00
Referenced by issue #49408, differents material shadings under Cycles+viewport in material mode,
1 changed files with 3 additions and 0 deletions

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)