Fix T49408: OpenGL light widget breaks viewport shading
This commit is contained in:
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,
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue