Fix T39305: Matcap Crash when using Material Nodes in Blender Internal

This is a regression in d34d745, texture painting didn't set is_paint
if draw type < DT_SOLID which is weird.
This commit is contained in:
Sergey Sharybin 2014-03-21 15:15:43 +06:00
parent 0f95149a78
commit 1781928f9d

@ -6806,14 +6806,13 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short
if (dt < OB_SOLID) {
zbufoff = 1;
dt = OB_SOLID;
is_paint = true;
}
if (ob->mode & (OB_MODE_VERTEX_PAINT | OB_MODE_WEIGHT_PAINT)) {
dt = OB_PAINT;
is_paint = true;
}
is_paint = true;
glEnable(GL_DEPTH_TEST);
}
}