fix for crash with selecting camera bundles.

This commit is contained in:
Campbell Barton 2012-06-07 14:21:25 +00:00
parent 35a274711e
commit 3140cd993d

@ -1744,7 +1744,9 @@ static void draw_viewport_reconstruction(Scene *scene, Base *base, View3D *v3d,
glDisable(GL_COLOR_MATERIAL);
glDisable(GL_LIGHTING);
glColor3ubv(ob_wire_col);
if ((flag & DRAW_CONSTCOLOR) == 0) {
glColor3ubv(ob_wire_col);
}
if (flag & DRAW_PICKING)
glLoadName(base->selcol);